Magellan Linux

Diff 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 | View Patch Patch

revision 1198 by niro, Sat Nov 20 16:45:38 2010 UTC revision 1199 by niro, Mon Nov 22 22:41:36 2010 UTC
# Line 8  diff -Naur magellan-initscripts/etc/rc.d Line 8  diff -Naur magellan-initscripts/etc/rc.d
8  - # if hotplug support exists in the kernel use it to manage udev  - # if hotplug support exists in the kernel use it to manage udev
9  - if [ -e /proc/sys/kernel/hotplug -a -x /sbin/hotplug ]  - if [ -e /proc/sys/kernel/hotplug -a -x /sbin/hotplug ]
10  + # use netlink to manage udev with newer kernels  + # use netlink to manage udev with newer kernels
11  + if [ "$(kernel_version | sed 's:\.::g')" -qt "2614" ]  + if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ]
12   then   then
13  - echo -e ${COLOREDSTAR}"  Using /sbin/hotplug for udev management ..."  - echo -e ${COLOREDSTAR}"  Using /sbin/hotplug for udev management ..."
14  + echo -e ${COLOREDSTAR}"  Using netlink for hotplug events ..."  + echo -e ${COLOREDSTAR}"  Using netlink for hotplug events ..."

Legend:
Removed from v.1198  
changed lines
  Added in v.1199