projects
/
grml-network.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ce7c8
)
netcardconfig: show the wpasecret input box, even if password is already set
author
Lukas Prokop
<admin@lukas-prokop.at>
Wed, 5 Sep 2012 14:29:05 +0000
(16:29 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 5 Sep 2012 14:29:25 +0000
(16:29 +0200)
sbin/netcardconfig
patch
|
blob
|
history
diff --git
a/sbin/netcardconfig
b/sbin/netcardconfig
index
d3ea772
..
f602f79
100755
(executable)
--- 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"