summaryrefslogtreecommitdiff
path: root/packages/udev/udev-089
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-07-24 16:23:08 +0000
committerRaymond Danks <raymond@edanks.com>2006-07-24 16:23:08 +0000
commit9a5e17007ad87d71e1018775dc36ce60448eb6c1 (patch)
treecfd07699cfdb0e8ff7aee31e5692e4c3ceda410b /packages/udev/udev-089
parentf559e1bedea1623ce3399fcbc52727cb02a78863 (diff)
udev - /proc/sys/kernel/hotplug hasmoved to /sys/kernel/uevent_helper in 2.6.16.
Diffstat (limited to 'packages/udev/udev-089')
-rw-r--r--packages/udev/udev-089/init8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/udev/udev-089/init b/packages/udev/udev-089/init
index 5a60d52a9a..e20e881e2a 100644
--- a/packages/udev/udev-089/init
+++ b/packages/udev/udev-089/init
@@ -84,7 +84,11 @@ set_hotplug_handler() {
case "$(uname -r)" in
2.6.1[0-4]|2.6.1[0-4][!0-9]*) HANDLER='/sbin/udevsend' ;;
esac
- echo $HANDLER > /proc/sys/kernel/hotplug
+ if [ -e /sys/kernel/uevent_helper ] ; then
+ echo $HANDLER > /sys/kernel/uevent_helper
+ else
+ echo $HANDLER > /proc/sys/kernel/hotplug
+ fi
}
# shell version of /usr/bin/tty
@@ -145,7 +149,7 @@ if [ ! -d /sys/class/ ]; then
exit 1
fi
-if [ ! -e /proc/sys/kernel/hotplug ]; then
+if [ ! -e /proc/sys/kernel/hotplug ] && [ ! -e /sys/kernel/uevent_helper ]; then
echo "udev requires hotplug support, not started."
exit 1
fi