read WPASECRET from file [Closes: issue900]
authorUlrich Dangel <uli@spamt.net>
Sun, 5 Sep 2010 13:59:26 +0000 (15:59 +0200)
committerUlrich Dangel <uli@spamt.net>
Sun, 5 Sep 2010 13:59:43 +0000 (15:59 +0200)
sbin/netcardconfig

index 0b2d89e..f0429c8 100755 (executable)
@@ -327,6 +327,7 @@ configiface() {
                   ' /etc/network/interfaces)
           while [ -z "$WPASECRET" ] ; do
             $DIALOG --inputbox "$MESSAGEW23 $ESSID" 15 50 "$WPASECRET" 2>"$TMP" || bailout 1
+            read WPASECRET <"$TMP"
             if [ -z "$WPASECRET" ] ; then
               $DIALOG --msgbox "Sorry, empty password not allowed, please retry." 0 0 || bailout 1
             fi