OSDN Git Service

Add support for su daemon installation and detection in recovery zip.
[android-x86/external-koush-Superuser.git] / Superuser / assets / install-recovery.sh
1 #!/system/bin/sh
2 mount -orw,remount /
3 mkdir /superuser
4 mount -t tmpfs swap /superuser
5 mount -oro,remount /
6
7 cp /system/xbin/su /superuser
8 chmod 6755 /superuser/su
9 mount -oro,remount /superuser
10 /superuser/su --daemon &