[Galaxy Note GT-N7000 Android Development] Galaxtus:
If you mean this...here you go... This is install_init_entries.sh

#!/sbin/sh
export PATH=$PATH:/sbin:/system/bin:/bin:/usr/bin:/usr/sbin:/system/xbin:/system/etc/CrossBreeder

RUNSTR="( /system/etc/CrossBreeder/zzCrossBreeder 0<&- &>/dev/null 2>&1 ) &"
ERUNSTR="\( \/system\/etc\/CrossBreeder\/zzCrossBreeder 0\<\&\- \&\>\/dev\/null 2\>\&1 \) \&"

busybox mount /system
busybox mount -o rw,remount /system

umask 022

if [ ! -f /system/etc/install-recovery.sh ]; then
echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh
fi

if [ ! -f /system/etc/install-recovery.sh.CBBAK ]; then
cp /system/etc/install-recovery.sh /system/etc/install-recovery.sh.CBBAK 2>/dev/null
busybox cp -a -f /system/etc/install-recovery.sh /system/etc/install-recovery.sh.CBBAK 2>/dev/null
else
cp /system/etc/install-recovery.sh.CBBAK /system/etc/install-recovery.sh 2>/dev/null
busybox cp -f /system/etc/install-recovery.sh.CBBAK /system/etc/install-recovery.sh 2>/dev/null
fi

chmod 755 /system/etc/install-recovery.sh
chown root.root /system/etc/install-recovery.sh
busybox chown 0:0 /system/etc/install-recovery.sh
busybox sed -i -e "s/^\#\!.*//" /system/etc/install-recovery.sh
busybox sed -i -e "1 i\#!/system/bin/sh" /system/etc/install-recovery.sh
busybox sed -i -e "s/.*CrossBreeder.*//" /system/etc/install-recovery.sh
busybox sed -i -e "1 a$ERUNSTR" /system/etc/install-recovery.sh

#busybox sed -i -e "s/.*CrossBreeder.*/$ERUNSTR/" /system/etc/install-recovery.sh

if ! busybox grep zzCrossBreeder /system/etc/install-recovery.sh >/dev/null 2>&1; then
echo $RUNSTR >> /system/etc/install-recovery.sh
fi

if ! busybox grep "^$RUNSTR$" /system/etc/install-recovery.sh >/dev/null 2>&1; then
echo $RUNSTR >> /system/etc/install-recovery.sh
fi

This is zzCrossBreeder

#!/system/bin/sh
exec 0>&1
export PATH=/system/etc/CrossBreeder:$PATH:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/etc/CrossBreeder:/system/lib

set +e
TRY=0

CHECK_HAVEGED()
{
for i in $(ls /data/haveged.pid* /data/local/haveged.pid 2>/dev/null); do
cmdline=`dd if=/proc/$(cat $i 2>/dev/null)/cmdline bs=1 count=7 2>/dev/null`
if [ "x$cmdline" = "xhaveged" ]; then
return 0;
fi
done

if busybox pgrep haveged > /dev/null 2>&1; then return 0; fi;

return 1;
}

RUN()
{
haveged -w 4096
#sleep 2
#busybox start-stop-daemon -S -p /data/local/haveged.pid -m -N 5 -b -x haveged -- -w 4096

if ! CHECK_HAVEGED; then TRY=$(($TRY+1)); fi

#( haveged -n 0 0<&- &>/dev/null 2>&1 ) &
#( haveged -n 0 0<&- & echo $!>/data/local/haveged.pid.1 ) &
haveged -n 0 -p /data/local/haveged.pid.1
#sleep 2
#busybox start-stop-daemon -S -p /data/local/haveged.pid.1 -m -N 5 -b -x haveged -- -n 0 -p /data/local/haveged.pid.1

TRY=$(($TRY+1))

PIDFILE=/data/local/haveged.pid
if [ $TRY -gt 1 ]; then
PIDFILE=/data/haveged.pid.$RANDOM
haveged -w 4096 -p $PIDFILE
# sleep 2
# busybox start-stop-daemon -S -p $PIDFILE -m -N 5 -b -x haveged -- -w 4096 -p $PIDFILE
haveged -n 0 -p $PIDFILE.1
# sleep 2
# busybox start-stop-daemon -S -p $PIDFILE.1 -m -N 5 -b -x haveged -- -n 0 -p $PIDFILE.1
fi

pid=`cat $PIDFILE 2>/dev/null`

if [ -f /system/lib/modules/frandom.ko ]; then
insmod /system/lib/modules/frandom.ko 2>/dev/null
busybox insmod /system/lib/modules/frandom.ko 2>/dev/null
insmod -f /system/lib/modules/frandom.ko 2>/dev/null
busybox insmod -f /system/lib/modules/frandom.ko 2>/dev/null
fi

if [ -f /system/lib/modules/frandom.ko ]; then sleep 5; fi

RANDOMDEVICE=urandom
if [ -c /dev/frandom ]; then
chmod 444 /dev/frandom
chmod 444 /dev/erandom
if [ ! -f /dev/urandom.MOD ]; then
mv /dev/urandom /dev/urandom.ORIG && ln /dev/erandom /dev/urandom
touch /dev/urandom.MOD
# if [ ! -f /dev/frandom_systemserver.RUN ]; then
# touch /dev/frandom_systemserver.RUN
# #busybox start-stop-daemon -S -b -p /dev/null -x busybox -- killall system_server
# ( busybox nohup busybox killall system_server 0<&- &>/dev/null 2>&1 ) &
# fi
fi
RANDOMDEVICE=frandom
fi

if [ -c /dev/urandom.ORIG ]; then
kill `cat /data/local/haveged.pid`
kill `cat /data/local/haveged.pid.1`
busybox killall haveged
haveged -w 4096 -s /dev/urandom.ORIG
# sleep 2
# busybox start-stop-daemon -S -p /data/local/haveged.pid -m -N 5 -b -x haveged -- -w 4096 -s /dev/urandom.ORIG
# ( haveged -n 0 -f /dev/urandom.ORIG 0<&- & echo $!>/data/local/haveged.pid.1 ) &
haveged -n 0 -f /dev/urandom.ORIG -p /data/local/haveged.pid.1
# sleep 2
# busybox start-stop-daemon -S -p /data/local/haveged.pid.1 -m -N 5 -b -x haveged -- -n 0 -f /dev/urandom.ORIG
fi

if [ ! -f /dev/random.MOD ]; then
mv /dev/random /dev/random.ORIG && ln /dev/$RANDOMDEVICE /dev/random
touch /dev/random.MOD
fi

echo 4096 > /proc/sys/kernel/random/write_wakeup_threshold
echo 1333 > /proc/sys/kernel/random/read_wakeup_threshold

# Extend IO queue
echo 1000 > /proc/sys/vm/dirty_expire_centisecs
echo 500 > /proc/sys/vm/dirty_writeback_centisecs

for i in $(pgrep haveged 2>/dev/null); do
echo -8 > /proc/$i/oom_adj 2>/dev/null
renice 5 $i 2>/dev/null
done
echo -8 > /proc/$pid/oom_adj 2>/dev/null
renice 5 $pid 2>/dev/null
}

trap 'rm /dev/CrossBreeder.RUN 2>/dev/null; if ! CHECK_HAVEGED; then RUN; fi;' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

if [ -f /dev/CrossBreeder.RUN ]; then exit 100; fi

ret=0
CB_FileLock /dev/CrossBreeder.RUN >/dev/null 2>&1
ret=$?

if [ "x$ret" = "x99" ]; then exit 99; fi

touch /dev/CrossBreeder.RUN

if CHECK_HAVEGED; then
rm /dev/CrossBreeder.RUN 2>/dev/null
exit 0
fi

RUN;

rm /dev/CrossBreeder.RUN 2>/dev/null

#if busybox grep "/system/etc/install-recovery.sh" /init.rc > /dev/null 2>&1; then
# mv /system/bin/debuggerd.bin /system/bin/debuggerd
# busybox killall debuggerd.bin
#fi

#if [ -c /dev/frandom ]; then
#if [ ! -f /dev/frandom_systemserver.RUN ]; then
# touch /dev/frandom_systemserver.RUN
# #busybox start-stop-daemon -S -b -p /dev/null -x busybox -- killall system_server
# ( busybox nohup busybox killall system_server 0<&- &>/dev/null 2>&1 ) &
#fi
#fi

exit 0