diff options
author | Emilio López <turl@tuxfamily.org> | 2011-04-07 22:28:27 +0000 |
---|---|---|
committer | Emilio López <turl@tuxfamily.org> | 2011-04-07 22:31:10 +0000 |
commit | 230b671528d44178cd61fc5ec312dcae2cfe572d (patch) | |
tree | 8be5ccb2c7169fc331f655c948c2950a31083f02 | |
parent | 6a04a58209717a9b731b346f4ee0861ded90c2f6 (diff) | |
download | vendor_replicant-230b671528d44178cd61fc5ec312dcae2cfe572d.zip vendor_replicant-230b671528d44178cd61fc5ec312dcae2cfe572d.tar.gz vendor_replicant-230b671528d44178cd61fc5ec312dcae2cfe572d.tar.bz2 |
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
-rwxr-xr-x | prebuilt/common/bin/compcache | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prebuilt/common/bin/compcache b/prebuilt/common/bin/compcache index 99be773..2cd0bde 100755 --- a/prebuilt/common/bin/compcache +++ b/prebuilt/common/bin/compcache @@ -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 |