diff options
author | Bill Nottingham <notting@redhat.com> | 2003-09-04 03:23:00 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-09-04 03:23:00 +0000 |
commit | 4a50b353cbd8a95f2b365e6574058f86f8e71dd4 (patch) | |
tree | 5486f3b500db441d8f9d3ee0272803a0e69ac9cf /rc.d/init.d/network | |
parent | 262cb747df007ffeb673bc4aefc77664f4fe4fb5 (diff) | |
download | initscripts-4a50b353cbd8a95f2b365e6574058f86f8e71dd4.tar initscripts-4a50b353cbd8a95f2b365e6574058f86f8e71dd4.tar.gz initscripts-4a50b353cbd8a95f2b365e6574058f86f8e71dd4.tar.bz2 initscripts-4a50b353cbd8a95f2b365e6574058f86f8e71dd4.tar.xz initscripts-4a50b353cbd8a95f2b365e6574058f86f8e71dd4.zip |
add bond devices last (#91399)
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index d47006d1..c86ab3b4 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -50,6 +50,7 @@ cd /etc/sysconfig/network-scripts interfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \ LANG=C egrep -v '(~|\.bak)$' | \ LANG=C egrep -v 'ifcfg-cipcb[0-9]+$' | \ + LANG=C egrep -v 'ifcfg-bond[0-9]+$' | \ LANG=C egrep 'ifcfg-[a-z0-9]+$' | \ sed 's/^ifcfg-//g' | sed 's/[0-9]/ &/' | LANG=C sort -k 1,1 -k 2n | sed 's/ //'` @@ -108,6 +109,33 @@ case "$1" in action $"Bringing up interface $i: " ./ifup $i boot done + # add bonding here. + bondinterfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \ + LANG=C egrep -v '(~|\.bak)$' | \ + LANG=C egrep 'ifcfg-bond[0-9]+$' | \ + sed 's/^ifcfg-//g'` + for i in $bondinterfaces ; do + if ! LANG=C 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 + # add cipe here. cipeinterfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \ LANG=C egrep -v '(~|\.bak)$' | \ |