Skip to content

Commit

Permalink
Cleaned install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
dorimanx committed Sep 18, 2013
1 parent d9cf14c commit 17e2d9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions sbin/ext/install.sh
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions sbin/init
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 17e2d9e

Please sign in to comment.