Files
poky/openembedded/packages/initscripts/initscripts-1.0/umountfs
Richard Purdie 4b46c1f6e8 Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
2005-08-31 10:45:47 +00:00

19 lines
295 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..."
mount -o remount,ro /mnt/ram
umount -f -a -r
mount -o remount,ro /
: exit 0