aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--su/install-su.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/su/install-su.sh b/su/install-su.sh
index 878b53f..136b09e 100644
--- a/su/install-su.sh
+++ b/su/install-su.sh
@@ -14,12 +14,13 @@ then
# check for rom su daemon before clobbering install-recovery.sh
if [ ! -f "/system/etc/.has_su_daemon" ]
then
- cp /sbin/run-su-daemon.sh /system/etc/install-recovery.sh
- chmod 755 /system/etc/install-recovery.sh
- # note that an post install su daemon was installed
- # so recovery doesn't freak out and recommend you disable
- # the install-recovery.sh execute bit.
- touch /system/etc/.installed_su_daemon
+ chattr -i /system/etc/install-recovery.sh
+ cp /sbin/run-su-daemon.sh /system/etc/install-recovery.sh
+ chmod 755 /system/etc/install-recovery.sh
+ # note that an post install su daemon was installed
+ # so recovery doesn't freak out and recommend you disable
+ # the install-recovery.sh execute bit.
+ touch /system/etc/.installed_su_daemon
fi
fi
fi