diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-07-31 01:18:46 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-07-31 01:19:21 -0700 |
commit | 63ac2b8c3cc179546e0cd87ac06950a75dcbd9b5 (patch) | |
tree | 8c96b53819d70a717f6ec731358db864106d328f | |
parent | 04f02c55ed014ef91c0e201bf058a19eeea7db99 (diff) | |
download | bootable_recovery-63ac2b8c3cc179546e0cd87ac06950a75dcbd9b5.zip bootable_recovery-63ac2b8c3cc179546e0cd87ac06950a75dcbd9b5.tar.gz bootable_recovery-63ac2b8c3cc179546e0cd87ac06950a75dcbd9b5.tar.bz2 |
unset immutable bit on install-recovery.sh
Change-Id: Ie7e8bfea57bed207c3c2d57bf3cd23daf6cd4c20
-rw-r--r-- | su/install-su.sh | 13 |
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 |