diff options
| author | Moyster <oysterized@gmail.com> | 2016-11-06 19:13:14 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-06 19:13:14 +0100 |
| commit | d00cf37b296b59cea4c66be4016e6d7316f21116 (patch) | |
| tree | 7a890635c4f713541ea51df8fdacad669720fd86 | |
| parent | 8222f598673b0241848149edf0d746fca6466cc9 (diff) | |
reintroduce enableswap.sh
| -rw-r--r-- | device_m2note.mk | 1 | ||||
| -rw-r--r-- | rootdir/enableswap.sh | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/device_m2note.mk b/device_m2note.mk index c240079..c2550bd 100644 --- a/device_m2note.mk +++ b/device_m2note.mk @@ -22,6 +22,7 @@ $(call add-product-dex-preopt-module-config,com.cyanogenmod.keyhandler,disable) # init.rc's PRODUCT_COPY_FILES += \ + device/meizu/m2note/rootdir/enableswap.sh:root/enableswap.sh \ device/meizu/m2note/rootdir/init.mt6735.rc:root/init.mt6735.rc \ device/meizu/m2note/rootdir/init.ssd.rc:root/init.ssd.rc \ device/meizu/m2note/rootdir/init.xlog.rc:root/init.xlog.rc \ diff --git a/rootdir/enableswap.sh b/rootdir/enableswap.sh new file mode 100644 index 0000000..c011e4d --- /dev/null +++ b/rootdir/enableswap.sh @@ -0,0 +1,4 @@ +#!/system/bin/sh +echo 536870912 > /sys/block/zram0/disksize +/system/xbin/mkswap /dev/block/zram0 +/system/xbin/swapon /dev/block/zram0 |
