diff --git a/sbin/ext/install.sh b/sbin/ext/install.sh index b780c73a..7a1b2d92 100755 --- a/sbin/ext/install.sh +++ b/sbin/ext/install.sh @@ -52,20 +52,14 @@ if [ -e /system/app/SuperSU.apk ] && [ -e /system/xbin/su ]; then # fi; fi; -SU_APP_NEEDED=1; -if [ -e /tmp/cm10.1-installed ]; then - SU_APP_NEEDED=0; -fi; - if [ "$install_root" == "on" ]; then if [ "$NEW_SU" -eq "0" ]; then echo "SuperSU already exists and updated"; chmod 6755 /system/xbin/su; else - echo "SuperSU update/install needed, check if CM10.1 detected"; - if [ "$SU_APP_NEEDED" -eq "0" ]; then - echo "CM10.1 detected, Super User already exists in ROM"; - chmod 6755 /system/xbin/su; + echo "SuperSU update/install needed, check if CM detected"; + if [ -e /tmp/cm-installed ]; then + echo "CM detected, Super User already exists in ROM"; else echo "CM10.1 NOT detected, Installing/Updating SuperSU"; #extract_payload; diff --git a/sbin/init b/sbin/init index 943122f1..3bbc515f 100755 --- a/sbin/init +++ b/sbin/init @@ -663,7 +663,7 @@ if [ "$JBSAMMY" -eq "1" ] || [ "$JBSAMMY2" -eq "1" ] || [ "$JBMIUI" -eq "1" ]; t elif [ "$CM_AOKP_10_2_JB" -eq "1" ]; then echo "3" > /proc/sys/kernel/rom_feature_set; $BB cp -a /res/misc/JellyB-CM-AOKP-10.2/* /; - touch /tmp/cm10.1-installed; + echo "1" > /tmp/cm-installed; SECROM_FUNCTION_AOSP; @@ -672,7 +672,7 @@ elif [ "$CM_AOKP_10_JB" -eq "1" ]; then POWER_SQL_JB; echo "3" > /proc/sys/kernel/rom_feature_set; $BB cp -a /res/misc/JellyB-CM-AOKP-10.1/* /; - touch /tmp/cm10.1-installed; + echo "1" > /tmp/cm-installed; SECROM_FUNCTION_AOSP; else