Last active
December 29, 2015 00:09
-
-
Save gawel/7584142 to your computer and use it in GitHub Desktop.
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 | |
if [ -f adb ]; then | |
./adb push 11link2sd /system/etc/init.d/11link2sd | |
./adb shell chown root:shell /system/etc/init.d/11link2sd | |
./adb shell chmod +x /system/etc/init.d/11link2sd | |
exit | |
fi | |
LOG=/data/link2sd-11link2sd.log | |
echo "$(date) mounting..." > $LOG | |
umount /sd-ext 1>>$LOG 2>>$LOG | |
! [ -d /data/sdext2 ] && mkdir /data/sdext2 | |
mount -t ext4 -o rw /dev/block/mmcblk0p2 /data/sdext2 1>>$LOG 2>>$LOG | |
mount >> $LOG | |
echo "$(date) mount finished" >> $LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment