1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $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 $ |
3 |
|
|
4 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
5 |
source $rc_functions |
source $rc_functions |
71 |
local loop |
local loop |
72 |
|
|
73 |
# populate /dev with devices already found by the kernel |
# populate /dev with devices already found by the kernel |
74 |
if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ] |
if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] |
75 |
then |
then |
76 |
echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." |
echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." |
77 |
trigger_events |
trigger_events |
215 |
|
|
216 |
if [ -e /proc/sys/kernel/hotplug ] |
if [ -e /proc/sys/kernel/hotplug ] |
217 |
then |
then |
218 |
if [ "$(kernel_version | sed 's:\.::g')" -gt "2614" ] |
if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] |
219 |
then |
then |
220 |
echo -e ${COLOREDSTAR}" Using netlink for hotplug events ..." |
echo -e ${COLOREDSTAR}" Using netlink for hotplug events ..." |
221 |
echo "" > /proc/sys/kernel/hotplug |
echo "" > /proc/sys/kernel/hotplug |