]> code.ossystems Code Review - openembedded-core.git/commitdiff
initscripts: do not check for kernels <2.4 on mounting swap
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Jul 2008 10:47:09 +0000 (10:47 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Jul 2008 10:47:09 +0000 (10:47 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4798 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/initscripts/initscripts-1.0/mountall.sh
meta/packages/initscripts/initscripts_1.0.bb

index b5cb85a1e94bf285c6e910be10aee9aeb7cfac6a..84227a5fe377d709ab4b655acf34f224f5fa86a1 100755 (executable)
@@ -27,19 +27,7 @@ kill -USR1 1
 # Execute swapon command again, in case we want to swap to
 # a file on a now mounted filesystem.
 #
-doswap=yes
-case "`uname -r`" in
-       2.[0123].*)
-               if grep -qs resync /proc/mdstat
-               then
-                       doswap=no
-               fi
-               ;;
-esac
-if test $doswap = yes
-then
-       swapon -a 2> /dev/null
-fi
+swapon -a 2> /dev/null
 
 : exit 0
 
index 16f987e49ec475b178e122dcf99a330aeb2ed2a0..9e8c8aa9ca2c709bebffa5a0b299a662b110f993 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r110"
+PR = "r111"
 
 SRC_URI = "file://functions \
            file://halt \