From 63ac2b8c3cc179546e0cd87ac06950a75dcbd9b5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 31 Jul 2013 01:18:46 -0700 Subject: unset immutable bit on install-recovery.sh Change-Id: Ie7e8bfea57bed207c3c2d57bf3cd23daf6cd4c20 --- su/install-su.sh | 13 +++++++------ 1 file 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 -- cgit v1.1