summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/openmn/umountfs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initscripts/initscripts-1.0/openmn/umountfs')
-rwxr-xr-x[-rw-r--r--]packages/initscripts/initscripts-1.0/openmn/umountfs17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/openmn/umountfs b/packages/initscripts/initscripts-1.0/openmn/umountfs
index e69de29bb2..399194109b 100644..100755
--- a/packages/initscripts/initscripts-1.0/openmn/umountfs
+++ b/packages/initscripts/initscripts-1.0/openmn/umountfs
@@ -0,0 +1,17 @@
+#! /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..."
+umount -f -a -r
+
+mount -o remount,ro /
+
+: exit 0