From: Lukas Prokop Date: Wed, 5 Sep 2012 14:02:05 +0000 (+0200) Subject: netcardconfig: sed command resets WPASECRET X-Git-Tag: v0.5.5~2 X-Git-Url: http://git.grml.org/?p=grml-network.git;a=commitdiff_plain;h=37ce7c838dc0f07bc13a4ffd5e28d3cd2f63de9e 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. --- 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)