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
This commit is contained in:
Marcin Juszkiewicz
2008-07-03 10:47:09 +00:00
parent a243bf5df2
commit 1bb8542a3e
2 changed files with 2 additions and 14 deletions

View File

@@ -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

View File

@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
PR = "r110"
PR = "r111"
SRC_URI = "file://functions \
file://halt \