[HD2 Android NAND Development] Visentinel:
I just did another reboot.

$ export PATH=/data/local/bin:$PATH

$free

total used free shared buffers

Mem: 421004 394580 26424 0 3516

-/+ buffers: 391064 29940

Swap: 0 0 0

$ su

# swapon -a

# ps | grep crond

# free

total used free shared buffers

Mem: 421004 395484 25520 0 3520

-/+ buffers: 391964 29040

Swap: 250188 0 250188

#

Here's a copy of my scripts.

#!/system/bin/sh

# Created by Dorimanx

while [ ! -e /mnt/sdcard/phonePrioritizer/script.txt ]

do

sleep 10

echo "Waiting For SDCARD to be Mounted and file /sdcard/phonePrioritizer/script.txt to be located"

done

echo "Found SDCARD and /sdcard/phonePrioritizer/script.txt file"

echo "Install busybox at first time"

if [ -e /system/xbin/crond ];

then

echo "No need to install busybox again";

else

busybox --install -s /system/xbin;

fi

echo "DONE"

echo "Fixing Market + Recovery + dalvik-cache Permissions!"

rm -rf /mnt/sdcard/download-market/

mkdir /mnt/sdcard/download-market/

rm -rf /cache/download

ln -s /sdcard/download-market /cache/download

if [ -d /sd-ext/dalvik-cache ]; then

rm -rf /cache/dalvik-cache

ln -s /sd-ext/dalvik-cache /cache/dalvik-cache

chown 1000:1000 /cache/dalvik-cache

fi

chmod 777 /cache -R

echo "DONE"

echo "Fix for radio hcitool permissions, Thanks to crawling and atoore"

chown 0:0 /system/xbin/hcitool

chmod 4755 /system/xbin/hcitool

echo "DONE"

echo "Fixing init.d permissions!"

chown 1000:2000 /system/etc/init.d -R

chmod 750 /system/etc/init.d -R

echo "DONE"

echo "TWEAKS: remount all partitions with rw,noatime,nodiratime,norelatime";

PART=`mount | grep -v /mnt/asec | grep -v /acct | grep -v /dev/cpuctl | grep -v /mnt/secure/asec | cut -d " " -f3`

for k in $PART

do

sync

mount -o remount,rw,noatime,nodiratime,norelatime $k

done

echo "DONE"

echo "TWEAKS: use noop as i/o scheduler + Telling system that disk is FLASH!";

echo "Speeding the READ/WRITE speeds! And adds more controled write speed burst!"

MTD=`ls -d /sys/block/mtd*`;

MMC=`ls -d /sys/block/mmc*`;

for i in $MTD $MMC

do

echo 64 > $i/queue/read_ahead_kb;

echo 20 > $i/queue/nr_requests;

echo noop > $i/queue/scheduler;

echo 64 > /sys/block/mmcblk0/queue/read_ahead_kb

echo "100" > /sys/devices/virtual/bdi/179:0/max_ratio

done

for g in /sys/block/*/queue/rotational;

do

echo 0 > $g;

done;

echo "DONE"

echo "Activating Swap EXT Partition!"

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

mkswap /sd-ext/swap > /dev/null

mkswap /sdcard/swap > /dev/null

mkswap /dev/block/mmcblk0p3

echo "#clean" > /system/etc/fstab

if [ -e /sd-ext/swap ];then

echo "/sd-ext/swap swap swap" >> /system/etc/fstab

fi

if [ -e /sdcard/swap ];then

echo "/sdcard/swap swap swap" >> /system/etc/fstab

fi

echo "/dev/block/mmcblk0p3 swap swap" >> /system/etc/fstab

swapon -a

free

echo "DONE"

echo "FIXING Camera Link"

chmod 777 /sys/class/leds/flashlight/*

echo "DONE"

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 2

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

if [ -d /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ ]; then

echo 60 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

fi

echo "This script was been fixed by vodkinagdan and me."

—-----—--—------—-—--—-—-—----—--

#!/system/bin/sh

#Created By Dorimanx

# enable crond

echo "root:x:0:0::/data/cron:/system/bin/bash" > /etc/passwd

# crond has "/bin/sh" hardcoded

ln -s /system/bin/ /bin

# set timezone

TZ=IDT-10

export TZ

# use /data/cron, call the crontab file "root"

crond -c /data/cron/