Viitor_upstart/etc/event.d/udevstart
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

43 lines
978 B
Plaintext

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.
start on start udev
#stop on runlevel
# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
script
if [ -f /sbin/udevstart ]; then
. /etc/init.d/functions
. /etc/udev/udev.conf
prog=udev
szsfs_dir=/sys
bin=/lib/udev
udevd=/sbin/udevd
udev_root=/dev
echo "Bringing udev system up"
echo -n "mounting sys"
mount -t sysfs none /sys
evaluate_retval
echo -n ".../var/lock"
if [ ! -d /var/lock/subsys ]; then
mkdir /var/lock/subsys
fi
if [ ! -d $udev_root ]; then
mkdir $udev_root
fi
evaluate_retval
echo -n ".../dev "
mount -t tmpfs none /dev
evaluate_retval
export ACTION=add
echo -n "Creating initial udev device nodes"
/sbin/udevstart
mkdir /dev/pts
fi
end script