diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-03 10:47:09 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-03 10:47:09 +0000 |
commit | 1bb8542a3eee9e70b49152b28261e3ad807cabc9 (patch) | |
tree | f11d5c7caeb4fe52f0cdc2730add121c3f158d5d /meta | |
parent | a243bf5df281c8e4680f36985e63cd12e226f63f (diff) | |
download | poky-1bb8542a3eee9e70b49152b28261e3ad807cabc9.tar.gz |
initscripts: do not check for kernels <2.4 on mounting swap
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4798 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/mountall.sh | 14 | ||||
-rw-r--r-- | meta/packages/initscripts/initscripts_1.0.bb | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/mountall.sh b/meta/packages/initscripts/initscripts-1.0/mountall.sh index b5cb85a1e9..84227a5fe3 100755 --- a/meta/packages/initscripts/initscripts-1.0/mountall.sh +++ b/meta/packages/initscripts/initscripts-1.0/mountall.sh | |||
@@ -27,19 +27,7 @@ kill -USR1 1 | |||
27 | # Execute swapon command again, in case we want to swap to | 27 | # Execute swapon command again, in case we want to swap to |
28 | # a file on a now mounted filesystem. | 28 | # a file on a now mounted filesystem. |
29 | # | 29 | # |
30 | doswap=yes | 30 | swapon -a 2> /dev/null |
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 | 31 | ||
44 | : exit 0 | 32 | : exit 0 |
45 | 33 | ||
diff --git a/meta/packages/initscripts/initscripts_1.0.bb b/meta/packages/initscripts/initscripts_1.0.bb index 16f987e49e..9e8c8aa9ca 100644 --- a/meta/packages/initscripts/initscripts_1.0.bb +++ b/meta/packages/initscripts/initscripts_1.0.bb | |||
@@ -4,7 +4,7 @@ PRIORITY = "required" | |||
4 | DEPENDS = "makedevs" | 4 | DEPENDS = "makedevs" |
5 | RDEPENDS = "makedevs" | 5 | RDEPENDS = "makedevs" |
6 | LICENSE = "GPL" | 6 | LICENSE = "GPL" |
7 | PR = "r110" | 7 | PR = "r111" |
8 | 8 | ||
9 | SRC_URI = "file://functions \ | 9 | SRC_URI = "file://functions \ |
10 | file://halt \ | 10 | file://halt \ |