diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-core/initscripts/initscripts-1.0/umountfs | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/umountfs')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/umountfs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountfs b/meta/recipes-core/initscripts/initscripts-1.0/umountfs new file mode 100755 index 0000000000..61324c630b --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/umountfs | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: umountfs | ||
4 | # Required-Start: | ||
5 | # Required-Stop: | ||
6 | # Default-Start: | ||
7 | # Default-Stop: 0 6 | ||
8 | # Short-Description: Turn off swap and unmount all local file systems. | ||
9 | # Description: | ||
10 | ### END INIT INFO | ||
11 | |||
12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
13 | |||
14 | echo "Deactivating swap..." | ||
15 | swapoff -a | ||
16 | |||
17 | # We leave /proc mounted. | ||
18 | echo "Unmounting local filesystems..." | ||
19 | grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram | ||
20 | mount -o remount,ro / | ||
21 | |||
22 | umount -f -a -r > /dev/null 2>&1 | ||
23 | |||
24 | : exit 0 | ||