diff options
Diffstat (limited to 'packages/initscripts/files/umountfs')
-rw-r--r-- | packages/initscripts/files/umountfs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/initscripts/files/umountfs b/packages/initscripts/files/umountfs new file mode 100644 index 0000000000..ec75b0c4a4 --- /dev/null +++ b/packages/initscripts/files/umountfs @@ -0,0 +1,18 @@ +#! /bin/sh +# +# umountfs Turn off swap and unmount all local filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +echo "Deactivating swap..." +swapoff -a + +# We leave /proc mounted. +echo "Unmounting local filesystems..." +mount -o remount,ro /mnt/ram +umount -f -a -r + +mount -o remount,ro / + +: exit 0 |