diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
| commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
| tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/initscripts/initscripts-1.0/mountall.sh | |
| parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
| download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz | |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/mountall.sh')
| -rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/mountall.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/mountall.sh b/meta/packages/initscripts/initscripts-1.0/mountall.sh new file mode 100755 index 0000000000..b5cb85a1e9 --- /dev/null +++ b/meta/packages/initscripts/initscripts-1.0/mountall.sh | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # | ||
| 2 | # mountall.sh Mount all filesystems. | ||
| 3 | # | ||
| 4 | # Version: @(#)mountall.sh 2.83-2 01-Nov-2001 miquels@cistron.nl | ||
| 5 | # | ||
| 6 | . /etc/default/rcS | ||
| 7 | |||
| 8 | # | ||
| 9 | # Mount local filesystems in /etc/fstab. For some reason, people | ||
| 10 | # might want to mount "proc" several times, and mount -v complains | ||
| 11 | # about this. So we mount "proc" filesystems without -v. | ||
| 12 | # | ||
| 13 | test "$VERBOSE" != no && echo "Mounting local filesystems..." | ||
| 14 | mount -at nonfs,nosmbfs,noncpfs 2>/dev/null | ||
| 15 | |||
| 16 | # | ||
| 17 | # We might have mounted something over /dev, see if /dev/initctl is there. | ||
| 18 | # | ||
| 19 | if test ! -p /dev/initctl | ||
| 20 | then | ||
| 21 | rm -f /dev/initctl | ||
| 22 | mknod -m 600 /dev/initctl p | ||
| 23 | fi | ||
| 24 | kill -USR1 1 | ||
| 25 | |||
| 26 | # | ||
| 27 | # Execute swapon command again, in case we want to swap to | ||
| 28 | # a file on a now mounted filesystem. | ||
| 29 | # | ||
| 30 | doswap=yes | ||
| 31 | case "`uname -r`" in | ||
| 32 | 2.[0123].*) | ||
| 33 | if grep -qs resync /proc/mdstat | ||
| 34 | then | ||
| 35 | doswap=no | ||
| 36 | fi | ||
| 37 | ;; | ||
| 38 | esac | ||
| 39 | if test $doswap = yes | ||
| 40 | then | ||
| 41 | swapon -a 2> /dev/null | ||
| 42 | fi | ||
| 43 | |||
| 44 | : exit 0 | ||
| 45 | |||
