From 19d47432a55a036e08fc37f683d0a8bfe478de44 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 17 Jan 2001 20:28:11 +0000 Subject: ask for startup of each network devie in CONFIRM mode. Patch from --- rc.d/init.d/network | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rc.d/init.d/network') 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 -- cgit v1.2.1