28 lines
553 B
Plaintext
28 lines
553 B
Plaintext
|
# rc - runlevel compatibility
|
||
|
#
|
||
|
# This task guesses what the "default runlevel" should be and starts the
|
||
|
# appropriate script.
|
||
|
|
||
|
start on started mountfs
|
||
|
stop on stopping mountfs
|
||
|
|
||
|
pre-start script
|
||
|
source /etc/udev/udev.conf
|
||
|
prog=udev
|
||
|
sysfs_dir=/sys
|
||
|
bin=/sbin/udev
|
||
|
udevd=/sbin/udevd
|
||
|
udev_root=/dev
|
||
|
if [ ! -d $sysfs_dir/block ]; then
|
||
|
exit 1
|
||
|
fi
|
||
|
export ACTION=add
|
||
|
touch /var/lock/subsys/udev
|
||
|
end script
|
||
|
|
||
|
exec /sbin/udevd
|
||
|
|
||
|
post-stop script
|
||
|
rm /var/lock/subsys/udev
|
||
|
end script
|