30 lines
659 B
Plaintext
30 lines
659 B
Plaintext
![]() |
description "Check if / ist nfs"
|
||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||
|
version 1.0
|
||
|
emits varmake startudev
|
||
|
|
||
|
|
||
|
start on startup
|
||
|
|
||
|
console output
|
||
|
script
|
||
|
echo "Starting checkvar script"
|
||
|
source /etc/init/functions
|
||
|
mount -t proc none /proc
|
||
|
status_message "/proc mounted"
|
||
|
if mount|grep /dev/root|grep nfs &>/dev/null; then
|
||
|
/sbin/initctl emit varmake
|
||
|
status_message "emitting varmake"
|
||
|
else
|
||
|
umount /proc
|
||
|
mount -t tmpfs none /var
|
||
|
tar -C /var -zxpf /boot/var.tgz
|
||
|
if [ ! -d /var/lock ]; then
|
||
|
mkdir /var/lock
|
||
|
fi
|
||
|
mount -t tmpfs none /var/lock
|
||
|
/sbin/initctl emit startudev
|
||
|
status_message "emitting startudev"
|
||
|
fi
|
||
|
end script
|