1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.13 2007-03-04 13:24:34 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.15 2007-08-17 22:07:29 niro Exp $ |
3 |
|
|
4 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
5 |
source $rc_functions |
source $rc_functions |
21 |
version=${version##0} |
version=${version##0} |
22 |
# Older udev's will print nothing |
# Older udev's will print nothing |
23 |
[[ -z ${version} ]] && version=0 |
[[ -z ${version} ]] && version=0 |
24 |
|
elif [[ -x /sbin/udevd ]] |
25 |
|
then |
26 |
|
version=$(/sbin/udevd --version) |
27 |
|
version=${version##0} |
28 |
|
[[ -z ${version} ]] && version=0 |
29 |
fi |
fi |
30 |
|
|
31 |
echo "${version}" |
echo "${version}" |
42 |
if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] |
if [ "$(kernel_version | sed 's:\.::g' | cut -d_ -f1)" -gt "2614" ] |
43 |
then |
then |
44 |
echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." |
echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." |
45 |
[[ $(udev_version) -ge "96" ]] && opts="--attr-match=dev" |
[[ $(udev_version) -ge "96" ]] && [[ ${RC_COLDPLUG} != yes ]] && opts="--attr-match=dev" |
46 |
/sbin/udevtrigger ${opts} |
/sbin/udevtrigger ${opts} |
47 |
evaluate_retval |
evaluate_retval |
48 |
else |
else |
72 |
# copy over any persistant things |
# copy over any persistant things |
73 |
if [[ -d /lib/udev/devices ]] |
if [[ -d /lib/udev/devices ]] |
74 |
then |
then |
75 |
cp --preserve=all --recursive --update /lib/udev/devices/* /dev |
cp --preserve=all --recursive --update /lib/udev/devices/* /dev 2>/dev/null |
76 |
fi |
fi |
77 |
|
|
78 |
# not provided by sysfs but needed |
# not provided by sysfs but needed |
215 |
fi |
fi |
216 |
evaluate_retval |
evaluate_retval |
217 |
|
|
218 |
|
/lib/udev/write_root_link_rule |
219 |
populate_udev |
populate_udev |
220 |
|
|
221 |
# create nodes that udev can't |
# create nodes that udev can't |