aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-01-04 16:00:38 -0500
committerBill Nottingham <notting@redhat.com>2011-01-04 16:00:38 -0500
commitdb18c076d609498aeca61e15b612c48351cc1c01 (patch)
tree46d8fb36813d7f4f8800381b6d1afc79f97476ed /sysconfig/network-scripts/network-functions
parent328e7a968515028d5668a63e6f4851a9c8c7e4a3 (diff)
downloadinitscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar
initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.gz
initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.bz2
initscripts-db18c076d609498aeca61e15b612c48351cc1c01.tar.xz
initscripts-db18c076d609498aeca61e15b612c48351cc1c01.zip
Frob device when calling sysctl, in case of vlans. (#665601, #667211, <ossman@cendio.se>)
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 3b5695f7..562fe7cb 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -141,6 +141,7 @@ source_config ()
[ -z "$DEVICETYPE" ] && DEVICETYPE=$(echo ${DEVICE} | sed "s/[0-9]*$//")
[ -z "$REALDEVICE" -a -n "$PARENTDEVICE" ] && REALDEVICE=$PARENTDEVICE
[ -z "$REALDEVICE" ] && REALDEVICE=${DEVICE%%:*}
+ [ -z "$SYSCTLDEVICE" ] && SYSCTLDEVICE=${REALDEVICE/.//}
if [ "${DEVICE}" != "${REALDEVICE}" ]; then
ISALIAS=yes
else