diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-09-17 18:01:23 +0000 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-09-17 18:38:25 +0000 |
commit | e8622747c60b148e94f095c4bb7fe40fc52bba0a (patch) | |
tree | 76274bb2dfc0fdc63e419144deccc3a85a087378 /recipes/shr/initscripts-shr/umountfs | |
parent | 80c55c2574e99f025d88608966b09fcc578ed4f5 (diff) |
initscripts-shr: Add SHR initscripts (from SHR)
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 |