Viitor_upstart/etc/init/checkvar.conf

23 lines
442 B
Plaintext
Raw Normal View History

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.
start on startup
#stop on runlevel
description "Check if / ist nfs"
author "Harald Kueller <harald.kueller@compuextreme.de>"
console output
script
mount -t proc none /proc
if mount|grep /dev/root|grep nfs &>/dev/null; then
/sbin/initctl emit varmake
else
umount /proc
mount -t tmpfs none /var/lock
/sbin/initctl emit start udev
fi
end script