aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 4e80fbea..c022b7a0 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -66,6 +66,9 @@ case "$1" in
;;
esac
+ oldhotplug=`sysctl kernel.hotplug | awk '{ print $3 }' 2>/dev/null`
+ sysctl -w kernel.hotplug="/bin/true" > /dev/null 2>&1
+
for i in $interfaces; do
if egrep -L "^ONBOOT=\"?[Nn][Oo]\"?" ifcfg-$i >/dev/null 2>&1 ; then
if [ "${i##eth}" != "$i" ]; then
@@ -96,6 +99,8 @@ case "$1" in
fi
done
+ sysctl -w kernel.hotplug=$oldhotplug > /dev/null 2>&1
+
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
grep "^any" /etc/sysconfig/static-routes | while read ignore type dest netmask mask bogus args; do