c90b7d0eb4
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5505 504e572c-2e33-0410-9681-be2bf7408885
40 lines
978 B
Plaintext
40 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/event.d/functions
|
|
. /etc/udev/udev.conf
|
|
prog=udev
|
|
sysfs_dir=/sys
|
|
bin=/lib/udev
|
|
udevd=/sbin/udevd
|
|
udev_root=/dev
|
|
echo "Bringing udev system up"
|
|
mount -t sysfs none /sys
|
|
status_message "mount of sys..."
|
|
if [ ! -d /var/lock/subsys ]; then
|
|
mkdir /var/lock/subsys
|
|
fi
|
|
if [ ! -d $udev_root ]; then
|
|
mkdir $udev_root
|
|
fi
|
|
status_message "Creation ov /var/lock..."
|
|
mount -t tmpfs none /dev
|
|
status_message "Mounting tmpfs to /dev..."
|
|
export ACTION=add
|
|
echo -n "Creating initial udev device nodes"
|
|
/sbin/udevstart
|
|
mkdir /dev/pts
|
|
fi
|
|
end script
|