Files
poky/meta/packages/initscripts/initscripts-1.0/openmn/umountfs
T
2006-07-21 10:10:31 +00:00

18 lines
266 B
Bash
Executable File

#! /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