Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ `grep "swap=yes" /system/etc/gaosp.conf` ]
- then
- echo "GaospRC : Mouting swap..."
- if [ ! -r /dev/block/mmcblk1p2 ]
- then
- if [ ! -f /data/swapfile ]
- then
- dd if=/dev/zero of=/data/swapfile bs=1024 count=30720
- mkswap /data/swapfile
- echo "Created file swap"
- fi
- swapon /data/swapfile
- else
- swapon /dev/block/mmcblk1p2
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement