aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2010-05-12 14:00:11 +0200
committerBill Nottingham <notting@redhat.com>2010-05-13 12:48:47 -0400
commit286e6430ce2b1873e319e5edfa08c45806fbedab (patch)
treed763ee1d96f2e43a350bae67c43ca78915c1112d /rc.d
parenteaeb72231350ed442979a7616cf547859a885609 (diff)
downloadinitscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar
initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.gz
initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.bz2
initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.tar.xz
initscripts-286e6430ce2b1873e319e5edfa08c45806fbedab.zip
use ip command for vlan instead of vconfig
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 9e0fc2a0..232f3e2c 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -34,9 +34,6 @@ fi
# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1
-# Even if VLAN is configured, without the utility we can't do much
-[ ! -x /sbin/vconfig ] && VLAN=
-
CWD=$(pwd)
cd /etc/sysconfig/network-scripts
@@ -69,10 +66,7 @@ case "$1" in
case "$VLAN" in
yes)
- if [ -d /proc/net/vlan ] || modprobe 8021q >/dev/null 2>&1 ; then
- test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD
- action $"Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type "$VLAN_NAME_TYPE"
- else
+ if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
echo $"No 802.1Q VLAN support available in kernel."
fi
;;