diff options
Diffstat (limited to 'recipes/shr/initscripts-shr/umountfs')
-rw-r--r-- | recipes/shr/initscripts-shr/umountfs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/shr/initscripts-shr/umountfs b/recipes/shr/initscripts-shr/umountfs new file mode 100644 index 0000000000..ec75b0c4a4 --- /dev/null +++ b/recipes/shr/initscripts-shr/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 |