Author: nathan
Date: 2005-03-16 20:09:15 -0700 (Wed, 16 Mar 2005)
New Revision: 4772

Modified:
   trunk/bootscripts/CHANGELOG
   trunk/bootscripts/lfs/sysconfig/network-devices/ifdown
   trunk/bootscripts/lfs/sysconfig/network-devices/ifup
Log:
Readded ONHOTPLUG option for ifup/ifdown

Modified: trunk/bootscripts/CHANGELOG
===================================================================
--- trunk/bootscripts/CHANGELOG 2005-03-16 23:18:06 UTC (rev 4771)
+++ trunk/bootscripts/CHANGELOG 2005-03-17 03:09:15 UTC (rev 4772)
@@ -2,6 +2,7 @@
        * Reverted the change from loadproc to start_daemon,
          Moved compatibility code into one single function.
          (Nathan Coulson)
+       * Readded the ONHOTPLUG option for ifup/ifdown (Nathan Coulson)
 
 n/a - March 01, 2005
        * Added CHECK_LINK variable in ifconfig.*/*, so if the

Modified: trunk/bootscripts/lfs/sysconfig/network-devices/ifdown
===================================================================
--- trunk/bootscripts/lfs/sysconfig/network-devices/ifdown      2005-03-16 
23:18:06 UTC (rev 4771)
+++ trunk/bootscripts/lfs/sysconfig/network-devices/ifdown      2005-03-17 
03:09:15 UTC (rev 4772)
@@ -49,6 +49,12 @@
        (
                . ${file}
 
+               # Will not process this service if started by hotplug, and 
+               # ONHOTPLUG is not set to yes
+               if [ "${IN_HOTPLUG}" = "1" -a "${ONHOTPLUG}" != "yes" ]; then
+                       continue
+               fi
+
                # This will run the service script, if SERVICE is set
                if [ -n "${SERVICE}" -a -x 
"${network_devices}/services/${SERVICE}" ]; then
                        if ip link show ${1} > /dev/null 2>&1; then

Modified: trunk/bootscripts/lfs/sysconfig/network-devices/ifup
===================================================================
--- trunk/bootscripts/lfs/sysconfig/network-devices/ifup        2005-03-16 
23:18:06 UTC (rev 4771)
+++ trunk/bootscripts/lfs/sysconfig/network-devices/ifup        2005-03-17 
03:09:15 UTC (rev 4772)
@@ -45,6 +45,13 @@
 
        (
                . ${file}
+
+               # Will not process this service if started by hotplug, and 
+               # ONHOTPLUG is not set to yes
+               if [ "${IN_HOTPLUG}" = "1" -a "${ONHOTPLUG}" != "yes" ]; then
+                        continue
+               fi
+
                if [ -n "${CHECK_LINK}" -o "${CHECK_LINK}" = "y" -o 
"${CHECK_LINK}" = "yes" -o "${CHECK_LINK}" = "1" ]; then
 
                        # Activate the interface, if not activated

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to