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