X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=sbin%2Fnetcardconfig;h=f0429c8972b2a3f508435d08e7a72b060c17fcd8;hb=8cd1f634b6d674bc1c95ff326fe3a888885e7ec7;hp=40252b71425ad71822507cf4ac56e2bb6ef7cb28;hpb=bc56d430ed4f7eb77355cd3db871d7a7078d051b;p=grml-network.git diff --git a/sbin/netcardconfig b/sbin/netcardconfig index 40252b7..f0429c8 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -325,7 +325,13 @@ configiface() { } } ' /etc/network/interfaces) - $DIALOG --inputbox "$MESSAGEW23 $ESSID" 15 50 "$WPASECRET" 2>"$TMP" || bailout 1 + 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 + done # make sure backslashes inside passphrase are handled correct WPASECRET=$(sed -e 's/\\/\\/g' "$TMP") && rm -r "$TMP"