projects
/
grml-network.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netcardconfig: default VLAN option to no and ensure 8021q module is loaded
[grml-network.git]
/
sbin
/
netcardconfig
diff --git
a/sbin/netcardconfig
b/sbin/netcardconfig
index
e3d0d11
..
3a80366
100755
(executable)
--- a/
sbin/netcardconfig
+++ b/
sbin/netcardconfig
@@
-420,10
+420,11
@@
configiface() {
fi
# Configure VLAN on this interface?
fi
# Configure VLAN on this interface?
- if $DIALOG --yesno "$MESSAGE16" 8 45; then
+ if $DIALOG --
defaultno --
yesno "$MESSAGE16" 8 45; then
$DIALOG --inputbox "$MESSAGE17 $DV" 10 45 2>"$TMP" || bailout 1
read -r VLAN <"$TMP" ; rm -f "$TMP"
if [ -n "$VLAN" ]; then
$DIALOG --inputbox "$MESSAGE17 $DV" 10 45 2>"$TMP" || bailout 1
read -r VLAN <"$TMP" ; rm -f "$TMP"
if [ -n "$VLAN" ]; then
+ modprobe 8021q # avoid warning that VLAN support isn't present yet
PDV=$DV
DV="vlan$VLAN"
fi
PDV=$DV
DV="vlan$VLAN"
fi