X-Git-Url: http://git.grml.org/?p=grml-network.git;a=blobdiff_plain;f=sbin%2Fnetcardconfig;h=f602f79f5ae3560f8a40cca48237959625844f86;hp=d3ea772458bfbfa6163cc466e904df9966320200;hb=63dae7f469dff849b7523d4c9212ce6015380dc5;hpb=37ce7c838dc0f07bc13a4ffd5e28d3cd2f63de9e diff --git a/sbin/netcardconfig b/sbin/netcardconfig index d3ea772..f602f79 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -327,12 +327,14 @@ configiface() { } } ' /etc/network/interfaces) - while [ -z "$WPASECRET" ] ; do + FIRST_RUN=0 # show the wpasecret input box at least once + while ( [ -z "$WPASECRET" ] || [ "$FIRST_RUN" ] ) ; 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 + FIRST_RUN="" done rm -f "$TMP"