Magellan Linux

Contents of /trunk/initscripts-alx/patches/initscripts-0.3.4-r10-alx-use-netlink-to-trigger-uevents-with-newer-udev.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1199 - (show annotations) (download)
Mon Nov 22 22:41:36 2010 UTC (13 years, 11 months ago) by niro
File size: 790 byte(s)
-fixed a typo
1 diff -Naur magellan-initscripts/etc/rc.d/init.d/rc magellan-initscripts-alx/etc/rc.d/init.d/rc
2 --- magellan-initscripts/etc/rc.d/init.d/rc 2005-07-03 23:34:35.000000000 +0200
3 +++ magellan-initscripts-alx/etc/rc.d/init.d/rc 2010-11-20 17:48:14.000000000 +0100
4 @@ -126,10 +126,11 @@
5 # now load udev
6 populate_udev
7
8 - # if hotplug support exists in the kernel use it to manage udev
9 - if [ -e /proc/sys/kernel/hotplug -a -x /sbin/hotplug ]
10 + # use netlink to manage udev with newer kernels
11 + if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ]
12 then
13 - echo -e ${COLOREDSTAR}" Using /sbin/hotplug for udev management ..."
14 + echo -e ${COLOREDSTAR}" Using netlink for hotplug events ..."
15 + echo "" > /proc/sys/kernel/hotplug
16
17 elif [ -e /proc/sys/kernel/hotplug ]
18 then