diff options
author | Bill Nottingham <notting@redhat.com> | 2004-06-07 19:16:59 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-06-07 19:16:59 +0000 |
commit | b487050453d0a536df32032b08ead1419aaad0a4 (patch) | |
tree | 75cac4d4d518e44c6ef3f941f2dbc47a29b53081 /rc.d/init.d/network | |
parent | 95471e15151a3232c34b7196105fa54cb9ab1080 (diff) | |
download | initscripts-b487050453d0a536df32032b08ead1419aaad0a4.tar initscripts-b487050453d0a536df32032b08ead1419aaad0a4.tar.gz initscripts-b487050453d0a536df32032b08ead1419aaad0a4.tar.bz2 initscripts-b487050453d0a536df32032b08ead1419aaad0a4.tar.xz initscripts-b487050453d0a536df32032b08ead1419aaad0a4.zip |
vlan fixes (#107504, <hrunting@texas.net>)
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 8f934eed..0581e386 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -88,6 +88,7 @@ case "$1" in awk '{ print $3 }' 2>/dev/null` sysctl -w kernel.hotplug="/bin/true" > /dev/null 2>&1 + vlaninterfaces="" cipeinterfaces="" xdslinterfaces="" bridgeinterfaces="" @@ -118,6 +119,12 @@ case "$1" in unset DEVICE TYPE SLAVE BRIDGE continue fi + + if [ "${DEVICE%%.*}" != "$DEVICE" ] ; then + vlaninterfaces="$vlaninterfaces $i" + unset DEVICE TYPE SLAVE BRIDGE + continue + fi if [ "$SLAVE" = "yes" ]; then unset DEVICE TYPE SLAVE BRIDGE @@ -139,7 +146,7 @@ case "$1" in done # Bring up xDSL and CIPE interfaces - for i in $bridgeinterfaces $xdslinterfaces $cipeinterfaces ; do + for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces $cipeinterfaces ; 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. if [ -f /var/run/confirm ]; then @@ -190,6 +197,7 @@ case "$1" in fi fi + vlaninterfaces="" cipeinterfaces="" xdslinterfaces="" bridgeinterfaces="" @@ -217,10 +225,16 @@ case "$1" in unset DEVICE TYPE BRIDGE continue fi + + if [ "${DEVICE%%.*}" != "$DEVICE" ] ; then + vlaninterfaces="$vlaninterfaces $i" + unset DEVICE TYPE SLAVE BRIDGE + continue + fi unset DEVICE TYPE BRIDGE done - for i in $cipeinterfaces $xdslinterfaces $bridgeinterfaces ; do + for i in $cipeinterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces; do eval $(fgrep "DEVICE=" ifcfg-$i) if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi |