mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ PRIORITY = "required"
|
||||
DEPENDS = "makedevs"
|
||||
RDEPENDS = "makedevs"
|
||||
LICENSE = "GPL"
|
||||
PR = "r110"
|
||||
PR = "r111"
|
||||
|
||||
SRC_URI = "file://functions \
|
||||
file://halt \
|
||||
|
||||
Reference in New Issue
Block a user