From 40feb42e646b79a4043ac1ad2b89d47408e2f751 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 27 Feb 2001 19:34:32 +0000 Subject: disable hotplug during network initscript --- rc.d/init.d/network | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rc.d/init.d') 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 -- cgit v1.2.1