Configuring VLAN is optional and usually not required, so default
to no.
Without the 8021q module being loaded it spills a warning
message, even though it works fine. This might be confusing
for the user though, so let's loaded ahead.
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
+ modprobe 8021q # avoid warning that VLAN support isn't present yet
PDV=$DV
DV="vlan$VLAN"
fi