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
~ #