diff options
Diffstat (limited to 'addonsu/updater-script-install')
-rw-r--r-- | addonsu/updater-script-install | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/addonsu/updater-script-install b/addonsu/updater-script-install deleted file mode 100644 index 996023c2..00000000 --- a/addonsu/updater-script-install +++ /dev/null @@ -1,25 +0,0 @@ -ui_print("Installing su addon..."); -ifelse(is_mounted("/system"), unmount("/system")); -package_extract_file("mount-system.sh", "/tmp/mount-system.sh"); -package_extract_file("unmount-system.sh", "/tmp/unmount-system.sh"); -set_metadata("/tmp/mount-system.sh", "uid", 0, "gid", 0, "mode", 0755); -set_metadata("/tmp/unmount-system.sh", "uid", 0, "gid", 0, "mode", 0755); -run_program("/tmp/mount-system.sh") == 0 || abort("Could not mount /system"); - -if getprop("ro.build.system_root_image") != "true" then - package_extract_dir("system", "/system"); - set_metadata("/system/addon.d/51-addonsu.sh", "uid", 0, "gid", 0, "mode", 0755, "selabel", "u:object_r:system_file:s0"); - set_metadata("/system/etc/init/superuser.rc", "uid", 0, "gid", 0, "mode", 0644, "selabel", "u:object_r:system_file:s0"); - set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "selabel", "u:object_r:su_exec:s0"); - symlink("/system/xbin/su", "/system/bin/su"); -else - package_extract_dir("system", "/system_root/system"); - set_metadata("/system_root/system/addon.d/51-addonsu.sh", "uid", 0, "gid", 0, "mode", 0755, "selabel", "u:object_r:system_file:s0"); - set_metadata("/system_root/system/etc/init/superuser.rc", "uid", 0, "gid", 0, "mode", 0644, "selabel", "u:object_r:system_file:s0"); - set_metadata("/system_root/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "selabel", "u:object_r:su_exec:s0"); - symlink("/system/xbin/su", "/system_root/system/bin/su"); -endif; - -run_program("/tmp/unmount-system.sh") == 0 || ui_print("Could not unmount /system"); -ui_print("Done"); -set_progress(1.000000); |