--- trunk/magellan-initscripts/etc/rc.d/init.d/rc 2006/03/04 18:55:54 345 +++ trunk/magellan-initscripts/etc/rc.d/init.d/rc 2006/05/29 21:25:45 376 @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.8 2006-03-04 18:55:54 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.9 2006-05-29 21:25:45 niro Exp $ source /etc/sysconfig/rc source $rc_functions @@ -71,7 +71,7 @@ local loop # populate /dev with devices already found by the kernel - if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ] + if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] then echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." trigger_events @@ -215,7 +215,7 @@ if [ -e /proc/sys/kernel/hotplug ] then - if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ] + if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] then echo -e ${COLOREDSTAR}" Using netlink for hotplug events ..." echo "" > /proc/sys/kernel/hotplug