Viitor_upstart/etc/event.d/udev
kueller 7b7f6e837b V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_upstart@4329 504e572c-2e33-0410-9681-be2bf7408885
2008-05-03 16:59:18 +00:00

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