All pastes #335243 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-01 05:45 UTC
rendered paste body
# Initialize the hotplugging subsystem for Cardbus, IEEE1394, PCI, and
# USB devices.  On a 2.4.x kernel this will run the old hotplug system
# started with /etc/rc.d/rc.hotplug.  On a newer kernel, hotplugging
# will be handled by udev.  If you run a 2.6+ kernel, don't shut off
# udev unless you also don't want hotplugging support.
if cat /proc/mounts | grep -wq sysfs ; then
  if ! grep -wq nohotplug /proc/cmdline ; then
    if [ -x /etc/rc.d/rc.udev ]; then
      if [ -d /dev/.udev/failed ]; then
       for i in /dev/.udev/failed/*; do
         echo "add" > "${i}/uevent"
       done
      fi
    elif [ -x /etc/rc.d/rc.hotplug ]; then
      . /etc/rc.d/rc.hotplug start
    fi
  fi
elif [ -x /etc/rc.d/rc.hotplug -a -w /proc/sys/kernel/hotplug ]; then
  if ! grep -wq nohotplug /proc/cmdline ; then
    . /etc/rc.d/rc.hotplug start
  fi
fi