From 37ce7c838dc0f07bc13a4ffd5e28d3cd2f63de9e Mon Sep 17 00:00:00 2001 From: Lukas Prokop Date: Wed, 5 Sep 2012 16:02:05 +0200 Subject: [PATCH] netcardconfig: sed command resets WPASECRET On second invocation the password might end up being empty. Then there's no chance to get a working netcardconfig again without manually editing /etc/network/interfaces, as the ugly awk command line can not parse the file any longer with an incomplete wpa-psk line. --- sbin/netcardconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/netcardconfig b/sbin/netcardconfig index 87e8c68..d3ea772 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -335,8 +335,7 @@ configiface() { fi done - # make sure backslashes inside passphrase are handled correct - WPASECRET=$(sed -e 's/\\/\\/g' "$TMP") && rm -r "$TMP" + rm -f "$TMP" case $WPA_DEV in hostap) -- 2.1.4