diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-04-19 15:45:18 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2011-04-19 16:03:02 +0200 |
commit | ca41cf92981b079cbebffb59a508556f4d1f9c28 (patch) | |
tree | 9b500485e8fb908ff352c8885f5acf5035ec165b /sysconfig/network-scripts/network-functions | |
parent | ac07916b8f0a84c62fce6c1a4094fd80caa4a687 (diff) | |
download | initscripts-ca41cf92981b079cbebffb59a508556f4d1f9c28.tar initscripts-ca41cf92981b079cbebffb59a508556f4d1f9c28.tar.gz initscripts-ca41cf92981b079cbebffb59a508556f4d1f9c28.tar.bz2 initscripts-ca41cf92981b079cbebffb59a508556f4d1f9c28.tar.xz initscripts-ca41cf92981b079cbebffb59a508556f4d1f9c28.zip |
fix sysctl calls with VLAN (mostly breaking IPv6)
[Bill Nottingham <notting@redhat.com>: updated patch]
sysctl uses "." as the path delimiter. VLAN uses "." as the id
delimiter. initscripts does absolutely nothing to resolve this conflict.
The end result is that all sysctl calls on VLAN if:s will just fail
(silently for extra bonus as the scripts pipe to /dev/null).
With legacy IP this isn't a big deal as the sysctl use is very sparse.
For IPv6 however, the shit really hits the fan as you can't even
disable address autoconfiguration without sysctl.
https://bugzilla.redhat.com/show_bug.cgi?id=665601
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 7469092c..6ae73706 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -121,6 +121,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 |