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