Use new control value to stol logcat from writing logs, and save power!
on sleep by auto, and can be used also for awake, to reduce cpu use!

need to set disable in STweaks Android Logger to gain the extra power.

but not logs to report on problem.
Tuned CORTEX and fixed BUGS, + added new auto RW mount for all critical points.
FIX damm profiles reset after boot. READ MORE!

For many users somehow the checksum that i check,
is changed in data partition after reboot!

And this lead to profile reset.

Now, for me, and many others all OK, but for some it's still bugged.

So i have removed the check, and now users need to READ the change log
and if i ask to reset the profile, and no one care!

Then, i dont care too.

end this shit.
Modified for Nightmare and Darkness changes!
Tuned all profiles, set sleep gov settings equal to all. + zzmoove tune.
Recovery fixing! major update :) READ MORE INSIDE!

*Fixed backup/restore of .android_secure

*Added Auto Dual Mount of 2 sdcards on recovery boot!
No longer needed to mount USB to access files :)

*Added backup/restore of Preloaded Partition!!!
it's backup under sd-ext name!
So on full backup it's will backup preloaded partition.
so STOCK roms can have backup now.

*Cleaned some old JUNK.
Updates latest INIT updates for 4.2.x and 4.3 ROMS from CM TEAM.
Revert for CM10.1 init.rc the mount for Dalvik mark as slave in zygotes

is still needed in CM10.1 branch. this resolve the STUCK on boot
after dalvik rebuild for many apps.
Touch Key fix perms for ROMS
ROOT always ON for CM10.2 (4.3) builds. only if set OFF then OFF.
Major rework to partition clean and tune Thanks to @computoncio READ MORE!

Merged @computoncio commits to allow system to be cleaned!
https://github.com/computoncio/initramfs3/commit/6da831cb975cf898171aa4332aba4f2bbe6069d8
https://github.com/computoncio/initramfs3/commit/f322a42ae2c05c51f86e336fe4393c7e9493188e
https://github.com/computoncio/initramfs3/commit/afefb7fa394dc89200339cfbae1b31ffd115c236

* Added check/fix and tune to system partition!
* Added check/fix and tune to preload partition! (also can be sec ROM system!)
* Fixed some logic errors in sbin/init
* Cleaned white space in script files
* Added more scary description for auto pertitions fix every boot
* Fixed script triggers
* Added missing values to all profiles for auto fix on/off

so here is what should be if all OK :)

~ # cat log-*
cat log-*
Wed Sep 11 09:07:25 GMT 2013
/res/dev/cache: clean, 17/6400 files, 1453/25600 blocks
/res/dev/cache: clean, 17/6400 files, 1453/25600 blocks
1
Wed Sep 11 09:07:25 GMT 2013
/res/dev/data: clean, 7190/131072 files, 459488/524288 blocks
/res/dev/data: clean, 7190/131072 files, 459488/524288 blocks
1
Wed Sep 11 09:07:25 GMT 2013
tune2fs 1.41.14 (22-Dec-2010)
tune2fs 1.41.14 (22-Dec-2010)
/dev/block/mmcblk0p12: clean, 1635/32768 files, 111193/131072 blocks
/dev/block/mmcblk0p12: clean, 1635/32768 files, 111193/131072 blocks
1
Wed Sep 11 12:07:29 IDT 2013
FIXING STORAGE
EXTERNAL SDCARD CHECK
** /dev/block/mmcblk1p1
** Phase 1 - Read and Compare FATs
Attempting to allocate 1907 KB for FAT
Attempting to allocate 1907 KB for FAT
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
2323 files, 3378880 free (105590 clusters)
INTERNAL SDCARD CHECK
** /dev/block/mmcblk0p11
** Phase 1 - Read and Compare FATs
Attempting to allocate 1473 KB for FAT
Attempting to allocate 1473 KB for FAT
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
12154 files, 1772928 free (55404 clusters)
DONE
Wed Sep 11 09:07:25 GMT 2013
/res/dev/system: clean, 1501/32768 files, 96615/131072 blocks
/res/dev/system: clean, 1501/32768 files, 96615/131072 blocks
1
~ #
~ # /sbin/tune2fs -l /res/dev/system
/sbin/tune2fs -l /res/dev/system
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   <none>
Last mounted on:          /system
Filesystem UUID:          57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal resize_inode dir_index filetype needs_recovery extent sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    journal_data_writeback
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              32768
Block count:              131072
Reserved block count:     0
Free blocks:              34457
Free inodes:              31267
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      31
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Last mount time:          Wed Sep 11 12:07:26 2013
Last write time:          Wed Sep 11 12:07:26 2013
Mount count:              21
Maximum mount count:      -1
Last checked:             Thu Jan  1 02:00:00 1970
Check interval:           0 (<none>)
Lifetime writes:          495 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      dd315316-1aba-11e3-8b54-811c56b6f73a
Journal backup:           inode blocks
~ #

~ # /sbin/tune2fs -l /res/dev/data
/sbin/tune2fs -l /res/dev/data
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   <none>
Last mounted on:          /data
Filesystem UUID:          57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    journal_data_writeback
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              131072
Block count:              524288
Reserved block count:     0
Free blocks:              64800
Free inodes:              123882
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      127
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Last mount time:          Wed Sep 11 12:07:28 2013
Last write time:          Wed Sep 11 12:07:28 2013
Mount count:              175
Maximum mount count:      -1
Last checked:             Sat Aug 17 21:13:18 2013
Check interval:           0 (<none>)
Lifetime writes:          2365 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      a5cb94d8-fb5a-11e2-9959-e12263214440
Journal backup:           inode blocks

~ # /sbin/tune2fs -l /res/dev/cache
/sbin/tune2fs -l /res/dev/cache
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   <none>
Last mounted on:          /cache
Filesystem UUID:          57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr dir_index filetype needs_recovery extent sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    journal_data_writeback
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              6400
Block count:              25600
Reserved block count:     0
Free blocks:              24147
Free inodes:              6383
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         6400
Inode blocks per group:   400
Last mount time:          Wed Sep 11 12:07:28 2013
Last write time:          Wed Sep 11 12:07:28 2013
Mount count:              164
Maximum mount count:      -1
Last checked:             Sat Aug 17 01:50:15 2013
Check interval:           0 (<none>)
Lifetime writes:          26 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      88958878-053d-11e3-ba52-a3292028bd74
Journal backup:           inode blocks

~ # /sbin/tune2fs -l /dev/block/mmcblk0p12
/sbin/tune2fs -l /dev/block/mmcblk0p12
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   <none>
Last mounted on:          /system
Filesystem UUID:          57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent sparse_super large_file uninit_bg
Filesystem flags:         unsigned_directory_hash
Default mount options:    journal_data_writeback
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              32768
Block count:              131072
Reserved block count:     0
Free blocks:              19879
Free inodes:              31133
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      31
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Last mount time:          Wed Sep 11 12:07:26 2013
Last write time:          Wed Sep 11 12:07:26 2013
Mount count:              32
Maximum mount count:      -1
Last checked:             Thu Jan  1 02:00:00 1970
Check interval:           0 (<none>)
Lifetime writes:          579 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      93c2f598-1ac1-11e3-969b-1fba77c8bf8e
Journal backup:           inode blocks
~ #
ReEnabled discard on all EXT4 partitions! (Trimming) some how it's was lost!

~ # mount | grep discard
mount | grep discard
/dev/block/mmcblk0p12 /preload ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/res/dev/system /system ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/res/dev/system /lib/modules ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/res/dev/cache /cache ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/dev/block/mmcblk0p1 /efs ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/res/dev/data /data ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic 0 0
~ #

Much better now :)
Modified script to support nightmare, darkness and alucard_hotplug!
Fixed cpu_up_rate,cpu_down_rate,up_freq,down_freq,up_load,down_load for hotplugging!
Fixed new hotplug system! otherwise can make problem with intelli_plug!
Reduced the OOM limit to 82MB free, was 130MB waste of ram.
Revert "ReEnabled discard on all EXT4 partitions! (Trimming) some how it's was lost!"

DISCARD is not supported on new EXT4 Drivers, and not needed.

4>EXT4-fs (mmcblk0p12): mounting with "discard" option, but the device does not support discard
6>EXT4-fs (mmcblk0p12): mounted filesystem with writeback data mode. Opts: noauto_da_alloc,journal_async_commit,discard
6>EXT4-fs (mmcblk0p9): recovery complete
4>EXT4-fs (mmcblk0p9): mounting with "discard" option, but the device does not support discard
6>EXT4-fs (mmcblk0p9): mounted filesystem with writeback data mode. Opts: noauto_da_alloc,journal_async_commit,discard

This reverts commit cbfc9f154b8fb04baaddd37d2f47cd171ef379f9.
Allow access to rfkill
Changed CPU set to new multi cpu gov define. TNX to @Alucard24

Now CPU gov will be set on 2 cores! and not for cpu0 only.
Fixed ROOT set to disable for 4.3 ROMS.

if using ADB for something, need to type su in adb to get access!

that what i call CM crap.