summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0-r0/umountfs
diff options
context:
space:
mode:
Diffstat (limited to 'initscripts/initscripts-1.0-r0/umountfs')
-rw-r--r--initscripts/initscripts-1.0-r0/umountfs18
1 files changed, 18 insertions, 0 deletions
diff --git a/initscripts/initscripts-1.0-r0/umountfs b/initscripts/initscripts-1.0-r0/umountfs
index e69de29bb2..ec75b0c4a4 100644
--- a/initscripts/initscripts-1.0-r0/umountfs
+++ b/initscripts/initscripts-1.0-r0/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