/[pkg-src]/trunk/initscripts-alx/patches/initscripts-0.3.4-r10-alx-use-netlink-to-trigger-uevents-with-newer-udev.patch |
Annotation of /trunk/initscripts-alx/patches/initscripts-0.3.4-r10-alx-use-netlink-to-trigger-uevents-with-newer-udev.patch
Parent Directory | Revision Log
Revision 1193 -
(hide annotations)
(download)
Sat Nov 20 16:45:38 2010 UTC (13 years, 10 months ago) by niro
File size: 790 byte(s)
Sat Nov 20 16:45:38 2010 UTC (13 years, 10 months ago) by niro
File size: 790 byte(s)
added patches for better udev support
1 | niro | 1193 | 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')" -qt "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 |