diff options
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/openmn/umountfs')
| -rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/openmn/umountfs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/openmn/umountfs b/meta/packages/initscripts/initscripts-1.0/openmn/umountfs new file mode 100755 index 0000000000..399194109b --- /dev/null +++ b/meta/packages/initscripts/initscripts-1.0/openmn/umountfs | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # | ||
| 3 | # umountfs Turn off swap and unmount all local filesystems. | ||
| 4 | # | ||
| 5 | |||
| 6 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 7 | |||
| 8 | echo "Deactivating swap..." | ||
| 9 | swapoff -a | ||
| 10 | |||
| 11 | # We leave /proc mounted. | ||
| 12 | echo "Unmounting local filesystems..." | ||
| 13 | umount -f -a -r | ||
| 14 | |||
| 15 | mount -o remount,ro / | ||
| 16 | |||
| 17 | : exit 0 | ||
