aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-14 22:38:19 +0000
committerBill Nottingham <notting@redhat.com>2001-03-14 22:38:19 +0000
commit871666c0dec1b95a4dad47566cb2e7685758a0c9 (patch)
tree93f7d9c497d99c1f3eaec7ae4d5b1a98d523e896
parent46a7124432842be657cfe678341222ee2060d16a (diff)
downloadinitscripts-871666c0dec1b95a4dad47566cb2e7685758a0c9.tar
initscripts-871666c0dec1b95a4dad47566cb2e7685758a0c9.tar.gz
initscripts-871666c0dec1b95a4dad47566cb2e7685758a0c9.tar.bz2
initscripts-871666c0dec1b95a4dad47566cb2e7685758a0c9.tar.xz
initscripts-871666c0dec1b95a4dad47566cb2e7685758a0c9.zip
do cipe stuff out of order
-rwxr-xr-xrc.d/init.d/network28
1 files changed, 28 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 4f03491d..f837307a 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -44,6 +44,7 @@ cd /etc/sysconfig/network-scripts
# ignore aliases, alternative configurations, and editor backup files
interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
egrep -v '(~|\.bak)$' | \
+ egrep -v 'ifcfg-cipcb[0-9]+$' | \
egrep -v 'ifcfg-ippp[0-9]+$' | \
egrep 'ifcfg-[a-z0-9]+$' | \
sed 's/^ifcfg-//g'`
@@ -99,6 +100,33 @@ case "$1" in
fi
done
+ # add cipe here.
+ cipeinterfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
+ egrep -v '(~|\.bak)$' | \
+ egrep 'ifcfg-cipcb[0-9]+$' | \
+ sed 's/^ifcfg-//g'`
+ for i in cipeinterfaces ; do
+ if ! egrep -L "^ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null 2>&1 ; then
+ # 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
+
sysctl -w kernel.hotplug=$oldhotplug > /dev/null 2>&1
# Add non interface-specific static-routes.