26 lines
656 B
Plaintext
26 lines
656 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>"
|
||
|
|
||
|
# 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
|
||
|
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
|