summaryrefslogtreecommitdiff
path: root/recipes/initscripts/initscripts-1.0/openmn/umountfs
blob: 399194109b470e2ee2c725e38ac6cc1364e9b4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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