aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-02-28 16:24:01 -0500
committerBill Nottingham <notting@redhat.com>2011-02-28 16:24:01 -0500
commitf662d4777625cd3bedea19cccabea7741a8b45c9 (patch)
tree022b2f6ec463b19a6efa03088c9f0a6158be22b2 /sysconfig
parentec2bee09f74293bf30cd06e62ae2a6845af09dda (diff)
downloadinitscripts-f662d4777625cd3bedea19cccabea7741a8b45c9.tar
initscripts-f662d4777625cd3bedea19cccabea7741a8b45c9.tar.gz
initscripts-f662d4777625cd3bedea19cccabea7741a8b45c9.tar.bz2
initscripts-f662d4777625cd3bedea19cccabea7741a8b45c9.tar.xz
initscripts-f662d4777625cd3bedea19cccabea7741a8b45c9.zip
Add GVRP support (#597598, <tomek@jot23.org>)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index d296508b..0089f3e9 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -114,7 +114,11 @@ if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ]; then
FLAG_REORDER_HDR="reorder_hdr off"
fi
- ip link add dev ${DEVICE} link ${PHYSDEV} type vlan id ${VID} ${FLAG_REORDER_HDR} || {
+ if [ "${GVRP}" = "yes" -o "${GVRP}" = "1" ]; then
+ FLAG_GVRP="gvrp on"
+ fi
+
+ ip link add dev ${DEVICE} link ${PHYSDEV} type vlan id ${VID} ${FLAG_REORDER_HDR} ${FLAG_GVRP} || {
(/usr/bin/logger -p daemon.info -t ifup \
$"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}" &)&
echo $"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}"