Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. if [ `grep "swap=yes" /system/etc/gaosp.conf` ]
  2. then
  3.     echo "GaospRC : Mouting swap..."
  4.     if [ ! -r /dev/block/mmcblk1p2 ]
  5.     then
  6.         if [ ! -f /data/swapfile ]
  7.         then
  8.             dd if=/dev/zero of=/data/swapfile bs=1024 count=30720
  9.             mkswap /data/swapfile
  10.             echo "Created file swap"
  11.         fi
  12.     swapon /data/swapfile
  13.     else
  14.     swapon /dev/block/mmcblk1p2
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement