* Unmount file systems.
svn path=/nixu/trunk/; revision=7084
This commit is contained in:
parent
49b2a218b5
commit
54f6e4fc71
@ -15,8 +15,20 @@ script
|
|||||||
echo \"<<< SYSTEM SHUTDOWN >>>\"
|
echo \"<<< SYSTEM SHUTDOWN >>>\"
|
||||||
echo \"\"
|
echo \"\"
|
||||||
|
|
||||||
|
# Do an initial sync just in case.
|
||||||
|
sync || true
|
||||||
|
|
||||||
|
# Unmount file systems.
|
||||||
|
umount -n -a || true
|
||||||
|
|
||||||
|
# Remount / read-only
|
||||||
|
mount -n -o remount,ro /dontcare / || true
|
||||||
|
|
||||||
|
# Final sync.
|
||||||
|
sync || true
|
||||||
|
|
||||||
# Right now all events above power off the system.
|
# Right now all events above power off the system.
|
||||||
exec halt -f -p
|
exec halt -f
|
||||||
end script
|
end script
|
||||||
";
|
";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user