aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-07-29 21:45:15 -0700
committerKoushik Dutta <koushd@gmail.com>2013-07-29 21:45:15 -0700
commit04f02c55ed014ef91c0e201bf058a19eeea7db99 (patch)
treef5af30d8ce4e0e4bc34f690e3c8a897198da8b28
parenta2aac8378215633a32966966f518077529e994c4 (diff)
downloadbootable_recovery-04f02c55ed014ef91c0e201bf058a19eeea7db99.zip
bootable_recovery-04f02c55ed014ef91c0e201bf058a19eeea7db99.tar.gz
bootable_recovery-04f02c55ed014ef91c0e201bf058a19eeea7db99.tar.bz2
4.3 detection fix
Change-Id: Ib5e3df51fa7a383f3699968e899e06d579480564
-rw-r--r--su/install-su.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/su/install-su.sh b/su/install-su.sh
index 1ea4288..878b53f 100644
--- a/su/install-su.sh
+++ b/su/install-su.sh
@@ -7,8 +7,10 @@ ln -sf /system/xbin/su /system/bin/su
# let's try to install it using install-recovery.sh
BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release)
IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3)
-if [ -z "$IS_43" -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
+if [ ! -z "$IS_43" ]
then
+ if [ -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
+ then
# check for rom su daemon before clobbering install-recovery.sh
if [ ! -f "/system/etc/.has_su_daemon" ]
then
@@ -19,4 +21,5 @@ then
# the install-recovery.sh execute bit.
touch /system/etc/.installed_su_daemon
fi
+ fi
fi