Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- # put in /etc/init.d/
- # chmod settings: -rwxr-x--- rootshell 21swapon
- partition=3 #partition number of swap partition. Change if swap is not partition 3.
- swappy=30 #swappiness. larger number = more likely to swap, smaller number = less likely to swap
- swapon /dev/block/mmcblk0p$partition;
- sysctl -w vm.swappiness=$swappy;
- exit 0;
Advertisement
Add Comment
Please, Sign In to add comment