Viitor_upstart/etc/init/checkvar
kueller 061ddf553e IN neuer Upstart version liegen die Scripte unter init, und nicht mehr
unter event.d



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5503 504e572c-2e33-0410-9681-be2bf7408885
2010-04-20 12:47:00 +00:00

23 lines
442 B
Plaintext

# 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