[Wildfire Android Development] Hanakie:
99Complete

#!/system/bin/sh

Sync;

setprop cm.filesystem.ready 1;

setprop dc.filesystem.ready 1;

setprop oxygen.filesystem.ready 1;

_____________________________________________________

99SuperCharger

#!/System/bin/sh

# V6 SuperCharger, OOM grouping & priority

fixes created by zeppelinrox

execute=0;

currentadj= cat/ sys/module/lowmemorykiller/parameters/adj;

currentminfree= cat /sys/module/lowmemorykiller/parameters/minfree;

scadj= cat /data/superchargerminfree;

scminfree= cat/data/superchargerminfree;

if [ "$currentadj" != "$scadj" ]; then

execute=1;

elif [[ -n "$scminfree" ]] && ["$currentminfree" != "$scminfree" ]; then

execute=1;

fi;

if [ "$execute" -eq 1 ]; then

mount -o remount,rw /system 2>/dev/null

for m in /dev/block/mtdblock*;

do

mount -o remount, rw $m /system 2>/dev/null;

done;

echo $scadj > /sys/module/lowmemorykiller/parameters/adj;

echo $scmin > /sys/module/lowmemorykiller/minfree;

busybox sysctl -w vm.

oom_kill_allocating_task=0;

busybox sysctl -w vm.panic_on_oom=0;

busybox sysctl -w kernel.panic_on_oops=1;

busybox sysctl -w kernel.panic=0;

mount -o remount.ro /system 2>/dev/null;

for m in /dev/block/mtdblock*;

do

mount -o remount.ro $m /system 2>/dev/null;

done;

fi;

sh /data/99supercharger.sh;

____________________________________________________________

20userinit

#!/system/bin/sh

# call a userinit.sh script if it's present on the sdcard

if [ "$SD_EXT_DIRECTORY" = "" ];

then

SD_EXT_DIRECTORY=/sd-ext;

fi;

if [ -e $SD_EXT_DIRECTORY/userinit.sh ];

then

log -p i -t userinit "Executing $SD_EXT_DIRECTORY/userinit.sh";

busybox chmod +x $SD_EXT_DIRECTORY/userinit.sh;

logwrapper /system/bin/sh $SD_EXT_DIRECTORY/userinit.sh;

setprop cm.userinit.active 1;

fi;

if [ -d $SD_EXT_DIRECTORY/userinit.d ];

then

logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;

setprop cm.userinit.active 1;

fi;

if [ -e /data/local/userinit.sh ];

then

log -p i -t userinit "Executing /data/local/userinit.sh";

busybox chmod +x /data/local/userinit.sh;

logwrapper /system/bin/sh /data/local/userinit.sh;

setprop cm.userinit.active 1;

fi;

if [ -d /data/local/userinit.d ];

then

logwrapper busybox run-parts /data/local/userinit.d;

setprop cm.userinit.active 1;

fi;

_____________________________________

04 modules

#!/system/bin/sh

#

# Load any extra modules

MODULES="ipv6"

KVER=`uname -r`

if [ ! -d /system/lib/modules/$KVER ]

then

exit 0

fi

for i in $MODULES

do

modprobe $i >/dev/null 2>&1

done

exit 0

____________________________________

03firstboot

#!/system/bin/sh

# execute any postinstall script then kill it

if [ -e /data/firstboot.sh ];

then

log -p i -t boot "Executing firstboot.sh..";

logwrapper /system/bin/sh /data/firstboot.sh;

rm -f /data/firstboot.sh;

fi;

__________________________________

02 apps2sd

#!/system/xbin/busybox ash

/system/bin/toolbox setprop persist.service.adb.enable 1

if [ -e /data/adbfix.txt ]

then

busybox ash /system/bin/adbfix;

fi;

if [ -e /data/dta2sd.log ];

then

if [ -e /data/dta2sd.lg2 ];

then

/system/bin/busybox.a2sd rm -f /data/dta2sd.lg2

fi

if [ -e /data/dta2sd.lg1 ]

then

busybox cp -f /data/dta2sd.lg1 /data/dta2sd.lg2

busybox rm -f /data/dta2sd.lg1

fi

busybox cp -f /data/dta2sd.log /data/dta2sd.lg1

busybox rm -f /data/dta2sd.log

fi

echo "[ ] Apps2SD is launching..."

echo "[ ] Darktremor Apps2SD Log" > /data/dta2sd.log

echo "[ ] Started: `/system/bin/busybox.a2sd date;`" >> /data/dta2sd.log

echo "[ ] File running: Main Apps2SD launch (a2sd, apps2sd or 04apps2sd)" >> /data/dta2sd.log

export a2sdparm=firstboot

echo "[ ] Directory Listing: /dev/block:" >> /data/dta2sd.log

busybox ls -l /dev/block >> /data/dta2sd.log

echo "[ ] Listing partitions currently active:" >> /data/dta2sd.log

busybox cat /proc/mounts >> /data/dta2sd.log

echo "[ ] Attempting to launch program: launcha2sd" >> /data/dta2sd.log

/system/bin/bash /system/bin/launcha2sd $a2sdparm

echo "[ ] Ending program: a2sd / apps2sd / 04apps2sd" >> /data/dta2sd.log

exit;

___________________________