X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=sbin%2Fnetcardconfig;h=0b2d89eb69a49fc4df78c30b7e1a17395b8173c5;hb=e8a5795d853f468f2f63fc654ea8959aca194e78;hp=40252b71425ad71822507cf4ac56e2bb6ef7cb28;hpb=4c126e55d70fcba91526ead7fcf8f48c04728735;p=grml-network.git diff --git a/sbin/netcardconfig b/sbin/netcardconfig index 40252b7..0b2d89e 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -325,7 +325,12 @@ 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 + 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"