Skip to content

Commit

Permalink
Run ROOT install and load early on boot + cleanups.
Browse files Browse the repository at this point in the history
Disbaled use of 4.3 Build In ROOT till CM will make it usable for all.
  • Loading branch information
dorimanx committed Sep 19, 2013
1 parent 6f3049d commit f974da8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
4 changes: 3 additions & 1 deletion init.cm.rc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CyanogenMod and AOKP Extras
import /init.superuser.rc

Now that we have SuperSU for 4.3, no need to run this.
#import /init.superuser.rc

on init
export ANDROID_CACHE /cache
Expand Down
32 changes: 11 additions & 21 deletions sbin/ext/post-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ read_config;
# custom boot booster stage 1
echo "$boot_boost" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;

(
# Apps and ROOT Install
$BB sh /sbin/ext/install.sh;
if [ -e /system/app/SuperSU.apk ] && [ -e /system/xbin/daemonsu ]; then
/system/xbin/daemonsu --auto-daemon &
fi;

# EFS Backup
$BB sh /sbin/ext/efs-backup.sh;
)&

# mdnie sharpness tweak
if [ "$mdniemod" == "on" ]; then
$BB sh /sbin/ext/mdnie-sharpness-tweak.sh;
Expand Down Expand Up @@ -145,16 +156,6 @@ if [ "$cpu_voltage_switch" == "off" ] && [ "$VDD_INT" != "3" ]; then
fi;
fi;

# STweaks check su only at /system/xbin/su make it so
if [ -e /system/xbin/su ]; then
echo "root for STweaks found";
elif [ -e /system/bin/su ]; then
cp /system/bin/su /system/xbin/su;
chmod 6755 /system/xbin/su;
else
echo "ROM without ROOT";
fi;

# busybox addons
if [ -e /system/xbin/busybox ]; then
ln -s /system/xbin/busybox /sbin/ifconfig;
Expand Down Expand Up @@ -244,17 +245,6 @@ mount -t tmpfs -o mode=0777,gid=1000 tmpfs /mnt/ntfs

$BB sh /sbin/ext/properties.sh;

(
# Apps Install
$BB sh /sbin/ext/install.sh;
if [ -e /system/app/SuperSU.apk ] && [ -e /system/xbin/daemonsu ]; then
/system/xbin/daemonsu --auto-daemon &
fi;

# EFS Backup
$BB sh /sbin/ext/efs-backup.sh;
)&

echo "0" > /tmp/uci_done;
chmod 666 /tmp/uci_done;

Expand Down

0 comments on commit f974da8

Please sign in to comment.