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 ..." |