external/koush/Superuser
修訂 | 0cb0e4c0f416c1f7c9b8841faeff4c04635d7e5a (tree) |
---|---|
時間 | 2013-07-30 13:41:52 |
作者 | Koushik Dutta <koushd@gmai...> |
Commiter | Koushik Dutta |
fix 4.3 check logic
Change-Id: Id87a853cdc20062e73b0f86786dd9b5d0b83b111
@@ -55,8 +55,10 @@ chmod 644 /system/app/Superuser.apk | ||
55 | 55 | # let's try to install it using install-recovery.sh |
56 | 56 | BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release) |
57 | 57 | IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3) |
58 | -if [ -z "$IS_43" -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ] | |
58 | +if [ ! -z "$IS_43" ] | |
59 | 59 | then |
60 | + if [ -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ] | |
61 | + then | |
60 | 62 | # check for rom su daemon before clobbering install-recovery.sh |
61 | 63 | if [ ! -f "/system/etc/.has_su_daemon" ] |
62 | 64 | then |
@@ -69,6 +71,7 @@ then | ||
69 | 71 | # the install-recovery.sh execute bit. |
70 | 72 | touch /system/etc/.installed_su_daemon |
71 | 73 | fi |
74 | + fi | |
72 | 75 | fi |
73 | 76 | |
74 | 77 | umount /system |
\ No newline at end of file |