Support built-in ramzswap
This change adds a check for the ramzswap device. This is useful if the kernel includes ramzswap built-in and not as a module. Change-Id: I39105064c8fdd678ca3d7e332703b6040806f601
This commit is contained in:
parent
6a04a58209
commit
230b671528
1 changed files with 2 additions and 1 deletions
|
@ -5,8 +5,9 @@
|
|||
#
|
||||
|
||||
isramzswap="$(find /system/lib/modules/ -name ramzswap.ko 2>/dev/null)"
|
||||
isramzswapbuiltin="$(ls -l /dev/block/ramzswap0 2>/dev/null)"
|
||||
|
||||
if [ -n "$isramzswap" ] ; then
|
||||
if [ -n "$isramzswap$isramzswapbuiltin" ] ; then
|
||||
MODULE=ramzswap
|
||||
DEV=/dev/block/ramzswap0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue