From: Ulrich Dangel Date: Sun, 5 Sep 2010 13:59:26 +0000 (+0200) Subject: read WPASECRET from file [Closes: issue900] X-Git-Tag: v0.3.6~2 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=9ccc6a295df786159f86a35d7a465f7902646312;p=grml-network.git read WPASECRET from file [Closes: issue900] --- diff --git a/sbin/netcardconfig b/sbin/netcardconfig index 0b2d89e..f0429c8 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -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