Last active
April 19, 2018 10:49
-
-
Save bboa/a4b0bdcfc5bd9ad9dd5db8fe28a5c29b to your computer and use it in GitHub Desktop.
Xperia E1 swap resize script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /system/bin/sh | |
( | |
sleep 1 | |
swapoff /dev/block/zram0 | |
echo 1 > /sys/block/zram0/reset | |
echo 104857600 > /sys/block/zram0/disksize | |
mkswap /dev/block/zram0 | |
swapon /dev/block/zram0 | |
) & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment