aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown7
1 files changed, 4 insertions, 3 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 82aaff4..a3f14d5 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -29,12 +29,13 @@ out "Sending KILL signal to all processes..."; {
killall5 -KILL
}
-out "Unmounting filesystems and disabling swap..."
-out "Remounting rootfs as readonly"; {
+out "Unmounting filesystems and disabling swap..."; {
swapoff -a
umount -rat nosysfs,noproc,nodevtmpfs,notmpfs
- mount -o remount,ro /
+} 2>&1 | log
+out "Remounting rootfs as readonly..."; {
+ mount -o remount,ro /
sync
} 2>&1 | log