diff options
author | Hashcode <hashcode0f@gmail.com> | 2015-02-16 22:04:21 -0800 |
---|---|---|
committer | Dániel Járai <jaraidaniel@gmail.com> | 2016-01-08 09:21:37 -0800 |
commit | 2f186b88a287d954e402c9bd91f0e8d75e5ce2bc (patch) | |
tree | 62f1aa3a2f6fcf1cc92109465ede04cb751f9d22 /rootdir | |
parent | a65848a0f5c7cc8e562c083d0e9dd23360148382 (diff) | |
download | device_samsung_tuna-2f186b88a287d954e402c9bd91f0e8d75e5ce2bc.zip device_samsung_tuna-2f186b88a287d954e402c9bd91f0e8d75e5ce2bc.tar.gz device_samsung_tuna-2f186b88a287d954e402c9bd91f0e8d75e5ce2bc.tar.bz2 |
Add zram information and mount it during boot
Change-Id: I2a758e866c4518a1cbbd360bd3a06f3d922161f5
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/fstab.tuna | 3 | ||||
-rwxr-xr-x | rootdir/init.tuna.rc | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/fstab.tuna b/rootdir/fstab.tuna index a314361..6216bb9 100644 --- a/rootdir/fstab.tuna +++ b/rootdir/fstab.tuna @@ -19,3 +19,6 @@ # USB storage device /devices/platform/omap/musb-omap2430/musb-hdrc auto auto defaults voldmanaged=usbdisk:auto + +# zRAM +/dev/block/zram0 none swap defaults zramsize=67108864 diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc index b79b12d..7399bfc 100755 --- a/rootdir/init.tuna.rc +++ b/rootdir/init.tuna.rc @@ -63,10 +63,14 @@ on boot on fs mkdir /factory 0775 radio radio + mount_all /fstab.tuna + swapon_all /fstab.tuna + restorecon /dev/block/platform/omap/omap_hsmmc.0/by-name/radio restorecon_recursive /factory mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount + setprop ro.crypto.fuse_sdcard true # change permissions for mtd device |