diff options
-rwxr-xr-x | rc.d/init.d/network | 17 | ||||
-rwxr-xr-x | rc.d/rc | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 00fd4127..c68f4ccb 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -62,6 +62,23 @@ case "$1" in # Probe module to preserve interface ordering /sbin/ifconfig $i >/dev/null 2>&1 else + # If we're in confirmation mode, get user confirmation + [ -n "$CONFIRM" ] && + { + confirm $i + case $? in + 0) + : + ;; + 2) + CONFIRM= + ;; + *) + continue + ;; + esac + } + action "Bringing up interface $i: " ./ifup $i boot fi done @@ -31,6 +31,8 @@ if [ "$previous" = "N" ]; then fi fi +export CONFIRM + # Get first argument. Set new runlevel to this argument. [ -n "$argv1" ] && runlevel="$argv1" |