Author: jim
Date: 2005-03-14 15:29:16 -0700 (Mon, 14 Mar 2005)
New Revision: 4761

Modified:
   trunk/bootscripts/lfs/init.d/hotplug
   trunk/bootscripts/lfs/init.d/udev
Log:
Updated: hotplug and udev to use /sbin/udevsend

Modified: trunk/bootscripts/lfs/init.d/hotplug
===================================================================
--- trunk/bootscripts/lfs/init.d/hotplug        2005-03-14 20:38:18 UTC (rev 
4760)
+++ trunk/bootscripts/lfs/init.d/hotplug        2005-03-14 22:29:16 UTC (rev 
4761)
@@ -6,7 +6,7 @@
 #
 # Authors     : Zack Winkles
 #
-# Version     : 00.01
+# Version     : 00.02
 #
 # Notes       :
 #
@@ -25,14 +25,12 @@
                echo_ok
                ;;
        stop)
-               # Remove hotplug as the default manager of hotplug events
-               echo /bin/true > /proc/sys/kernel/hotplug
+               # Remove /var/log/hotplug/events
+               rm /var/log/hotplug/events
 
-                # Remove /var/log/hotplug/events
-                rm /var/log/hotplug/events
+               # Recreate /var/log/hotplug/events
+               touch /var/log/hotplug/events
 
-                # Recreate /var/log/hotplug/events
-                touch /var/log/hotplug/events
                ;;
        status)
                for rc in /etc/hotplug/*.rc

Modified: trunk/bootscripts/lfs/init.d/udev
===================================================================
--- trunk/bootscripts/lfs/init.d/udev   2005-03-14 20:38:18 UTC (rev 4760)
+++ trunk/bootscripts/lfs/init.d/udev   2005-03-14 22:29:16 UTC (rev 4761)
@@ -6,7 +6,7 @@
 #
 # Authors     : Zack Winkles
 #
-# Version     : 00.00
+# Version     : 00.01
 #
 # Notes       :
 #
@@ -63,9 +63,9 @@
                        /etc/rc.d/init.d/halt stop
                fi
 
-               # Assign hotplug to get hotplug events.  The LFS Book disables
-               # automatically using hotplug until the system is ready for it
-               echo /sbin/hotplug > /proc/sys/kernel/hotplug
+               # Assign udevsend to get hotplug events. udevsend can manage 
the whole
+               # hotplug handling by taking over the kernel spawned event 
process
+               echo /sbin/udevsend > /proc/sys/kernel/hotplug
 
                # Populate /dev with all the devices that are already available,
                # and save it's status so we can report failures.

-- 
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