We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2aac83 commit 04f02c5Copy full SHA for 04f02c5
su/install-su.sh
@@ -7,8 +7,10 @@ ln -sf /system/xbin/su /system/bin/su
7
# let's try to install it using install-recovery.sh
8
BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release)
9
IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3)
10
-if [ -z "$IS_43" -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
+if [ ! -z "$IS_43" ]
11
then
12
+ if [ -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
13
+ then
14
# check for rom su daemon before clobbering install-recovery.sh
15
if [ ! -f "/system/etc/.has_su_daemon" ]
16
@@ -19,4 +21,5 @@ then
19
21
# the install-recovery.sh execute bit.
20
22
touch /system/etc/.installed_su_daemon
23
fi
24
+ fi
25
0 commit comments