[HTC Sensation] BLEK0TA:
in etc/init.d are 3 files:

file one:

89badass:

#!/system/bin/sh

#balanced badass configuration

echo 918000 > /sys/devices/system/cpu/cpufreq/badass/two_phase_freq

echo 1188000 > /sys/devices/system/cpu/cpufreq/badass/three_phase_freq

echo 130 > /sys/devices/system/cpu/cpufreq/badass/busy_threshold

echo 100 > /sys/devices/system/cpu/cpufreq/badass/busy_clr_threshold

echo 14 > /sys/devices/system/cpu/cpufreq/badass/semi_busy_threshold

echo 6 > /sys/devices/system/cpu/cpufreq/badass/semi_busy_clr_threshold

echo 260 > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_threshold

echo 180 > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_clr_threshold

echo 700 > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_threshold

echo 500 > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_clr_threshold

file two:

90zram

#!/system/bin/sh

# auto zram activation init script with busybox search

# by show-p1984

echo "[90ZRAM]: Firing up /system/etc/init.d/90zram";

if [ ! -e /sys/block/zram0/disksize ] ; then

echo "[90ZRAM]: ERROR unable to find /sys/block/zram0/disksize";

echo "[90ZRAM]: Is this a ZRAM kernel?";

echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";

else

#find busybox in /system

bblocation=$(find /system/ -name 'busybox')

if [ -n "$bblocation" ] && [ -e "$bblocation" ] ; then

echo "[90ZRAM]: busybox found in:" $bblocation;

echo "[90ZRAM]: Setting ZRAM disksize.";

echo $((100*1024*1024)) > /sys/block/zram0/disksize

echo "[90ZRAM]: Starting ZRAM...";

bblocation=${bblocation%/*}

cd $bblocation

./busybox mkswap /dev/block/zram0

./busybox swapon /dev/block/zram0

echo "[90ZRAM]: ZRAM activated.";

else

echo "[90ZRAM]: ERROR! busybox not found!";

echo "[90ZRAM]: Is busybox installed? Symlinks set?";

echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";

fi

fi

file three:

91tun

#!/system/bin/sh

#Check if tun kernel module is present

#insert it if it is.

if [ -e /system/lib/modules/tun.ko ] ; then

insmod /system/lib/modules/tun.ko

echo "[91TUN]: Inserted tun kernel module.";

else

echo "[91TUN]: No tun kernel module found.";

fi

_______________________________

in log file is this:

AROMA INSTALLER version 2.00

(c) 2012 by amarullz xda-developers

ROM Name : Bricked-Kernel-3.0

ROM Version : 1.4

ROM Author : show-p1984\bricked.de

Device : HTC Sensation (pyramid)

Start at : Fri Jan 2 01:02:14 1970

-Checking Model ID

-Success!

-Model ID - HTC Pyramid

-Ok to proceed

Welcome to Bricked-3.0 by show-p1984

Extracting files ...

Extract: /tmp/badass.sh

Extract: /tmp/cmdline.sh

Extract: /tmp/compatibility.sh

Extract: /tmp/dd

Extract: /tmp/mkbootimg

Extract: /tmp/mkbootimg.sh

Extract: /tmp/modclean.sh

Extract: /tmp/reboot.sh

Extract: /tmp/scheduler.sh

Extract: /tmp/sweep2wake.sh

Extract: /tmp/unpackbootimg

Extract: /tmp/zImage

Deleting Old Modules...

about to run program [/sbin/busybox] with 3 args

about to run program [/tmp/modclean.sh] with 1 args

Copying New Modules

Copying thermald.conf

Copying post_boot.sh...

Copying ZRAM enabler...

Setting permissions...

Extract: /system/etc/init.d/90zram

Extract: /system/etc/init.d/91tun

Extract: /system/etc/init.qcom.post_boot.sh

Extract: /system/lib/modules/bcm4329.ko

Extract: /system/lib/modules/bcmdhd.ko

Extract: /system/lib/modules/cifs.ko

Extract: /system/lib/modules/kineto_gan.ko

Extract: /system/lib/modules/msm-buspm-dev.ko

Extract: /system/lib/modules/spidev.ko

Extract: /system/lib/modules/tun.ko

Running compatibility checks...

about to run program [/tmp/compatibility.sh] with 1 args

Setting badass configuration...

about to run program [/tmp/badass.sh] with 1 args

Pull the boot.img from your phone...

about to run program [/tmp/dd] with 3 args

32768+0 records in

32768+0 records out

16777216 bytes (16.0MB) copied, 0.529815 seconds, 30.2MB/s

Extract boot.img...

about to run program [/tmp/unpackbootimg] with 3 args

BOARD_KERNEL_CMDLINE console=ttyHSL0 androidboot.hardware=pyramid no_console_suspend=1 maxkhz=1566000 minkhz=192000 gov=badass maxscroff=486000 3dgpu=320000000 2dgpu=266667000 s2w=1 scheduler=deadline

BOARD_KERNEL_BASE 48000000

PAGE_SIZE 2048

Searching for this zip on the sdcard...

(this may take a few seconds)

about to run program [/tmp/cmdline.sh] with 1 args

Activating sweep2wake...

Deactivating HTC screenshot (PWR+HOME)...

(Use AOSP instead: Hold Vol.down+PWR for about a second)

about to run program [/tmp/sweep2wake.sh] with 1 args

Setting chosen scheduler...

about to run program [/tmp/scheduler.sh] with 1 args

Repack boot.img with Bricked &

changing the cmdline of the kernel...

Installing kernel...

about to run program [/tmp/mkbootimg.sh] with 1 args

Flashing New boot.img...

Wiping /cache

Creating filesystem with parameters:

Size: 125787136

Block size: 4096

Blocks per group: 32768

Inodes per group: 7677

Inode size: 256

Journal blocks: 1024

Label:

Blocks: 30709

Block groups: 1

Reserved block group size: 7

Created filesystem with 11/7677 inodes and 1518/30709 blocks

Done! :D

by show-p1984

script result was [by show-p1984]

Installer Sucessfull (Status 0)

End at : Fri Jan 2 01:03:39 1970

______________________________

i try reflashing kernel many many times but still same results - z ram not activated, and freezing, restarting...