[HTC EVO 3D] PiggyFlooper:
cmdline.sh

#!/sbin/sh #clean cmdline from foreigns. failsafe #needed since some cmdlines are full of rubbish :) sed -i 's/no_console_suspend=1[^$]*$/no_console_suspend=1/g' /tmp/boot.img-cmdline

#Add maxkhz to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="maxkhz=" maxkhz="maxkhz="$maxkhz case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/maxkhz=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $maxkhz>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $maxkhz>/tmp/boot.img-cmdline ;; esac #end maxkhz

#Add minkhz to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="minkhz=" minkhz="minkhz="$minkhz case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/minkhz=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $minkhz>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $minkhz>/tmp/boot.img-cmdline ;; esac #end minkhz

#Add gov to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="gov=" gov="gov="$gov case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/gov=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $gov>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $gov>/tmp/boot.img-cmdline ;; esac #end gov

#Add maxscroff to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="maxscroff=" maxscroff="maxscroff="$maxscroff case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/maxscroff=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $maxscroff>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $maxscroff>/tmp/boot.img-cmdline ;; esac #end maxscroff

#Add 3dgpu to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="3dgpu=" gpu3d="3dgpu="$gpu3d case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/3dgpu=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $gpu3d>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $gpu3d>/tmp/boot.img-cmdline ;; esac #end 3dgpu

#Add 2dgpu to the kernels cmdline. cmdline=$(cat /tmp/boot.img-cmdline) searchString="2dgpu=" gpu2d="2dgpu="$gpu2d case $cmdline in "$searchString"* | *" $searchString"*) echo $(cat /tmp/boot.img-cmdline | sed -e 's/2dgpu=[^ ]\+//')>/tmp/boot.img-cmdline echo $(cat /tmp/boot.img-cmdline)\ $gpu2d>/tmp/boot.img-cmdline ;; *) echo $(cat /tmp/boot.img-cmdline)\ $gpu2d>/tmp/boot.img-cmdline ;; esac #end 2dgpu

features.sh

#!/sbin/sh #create script busybox touch /system/etc/init.d/98buttered

#set permissions busybox chmod 777 /system/etc/init.d/98buttered

#create script header echo "#!/system/bin/sh" > /system/etc/init.d/98buttered; echo "" >>/system/etc/init.d/98buttered; echo "#Set anthrax features" >>/system/etc/init.d/98buttered; echo "" >>/system/etc/init.d/98buttered; echo "" >>/system/etc/init.d/98buttered;

#load scsi-wait driver echo "# load scsi-wait driver for OTG" >>/system/etc/init.d/98buttered; echo "insmod /system/lib/modules/scsi_wait_scan.ko" >>/system/etc/init.d/98buttered echo "" >>/system/etc/init.d/98buttered; #end scsi-wait

#get VSYNC setting and create init.d script val=$(cat /tmp/aroma-data/vsync.prop | cut -d"=" -f2) case $val in 1) #off echo "# set VSYNC off" >>/system/etc/init.d/98buttered; echo "mount -t debugfs debugfs /sys/kernel/debug" >>/system/etc/init.d/98buttered echo "echo 0 >/sys/kernel/debug/msm_fb/0/vsync_enable" >>/system/etc/init.d/98buttered echo "echo 0 >/sys/kernel/debug/msm_fb/0/hw_vsync_mode" >>/system/etc/init.d/98buttered echo "echo 4 >/sys/kernel/debug/msm_fb/0/backbuff" >>/system/etc/init.d/98buttered echo "" >>/system/etc/init.d/98buttered; ;; 2) #on echo "# set VSYNC on" >>/system/etc/init.d/98buttered; echo "mount -t debugfs debugfs /sys/kernel/debug" >>/system/etc/init.d/98buttered echo "echo 1 >/sys/kernel/debug/msm_fb/0/vsync_enable" >>/system/etc/init.d/98buttered echo "echo 1 >/sys/kernel/debug/msm_fb/0/hw_vsync_mode" >>/system/etc/init.d/98buttered echo "echo 3 >/sys/kernel/debug/msm_fb/0/backbuff" >>/system/etc/init.d/98buttered echo "" >>/system/etc/init.d/98buttered; ;; esac

#create script footer echo "" >>/system/etc/init.d/98buttered;

return $?

Sent from above using XDA Premium