1on late-fs
2    # boot time fs tune
3    write /sys/block/sda/queue/iostats 0
4    write /sys/block/sda/queue/scheduler cfq
5    write /sys/block/sda/queue/iosched/slice_idle 0
6    write /sys/block/sda/queue/read_ahead_kb 2048
7    write /sys/block/sda/queue/nr_requests 256
8    write /sys/block/sde/queue/iostats 0
9    write /sys/block/sde/queue/scheduler cfq
10    write /sys/block/sde/queue/iosched/slice_idle 0
11    write /sys/block/sde/queue/read_ahead_kb 2048
12    write /sys/block/sde/queue/nr_requests 256
13    write /sys/block/dm-0/queue/read_ahead_kb 2048
14    write /sys/block/dm-1/queue/read_ahead_kb 2048
15
16on property:sys.boot_completed=1
17    # end boot time fs tune
18    write /sys/block/sda/queue/read_ahead_kb 1024
19    write /sys/block/sda/queue/nr_requests 128
20    write /sys/block/sda/queue/iostats 1
21    write /sys/block/sde/queue/read_ahead_kb 1024
22    write /sys/block/sde/queue/nr_requests 128
23    write /sys/block/sde/queue/iostats 1
24    write /sys/block/dm-0/queue/read_ahead_kb 512
25    write /sys/block/dm-1/queue/read_ahead_kb 512
26
27on boot
28    # Allow ftm4 autotune from adb shell
29    chown system shell /sys/devices/virtual/input/ftm4_touch/autotune
30
31on init && property:ro.boot.revision=*
32    setprop ro.boot.hardware.revision ${ro.boot.revision}
33
34on property:init.svc.vendor.fps_hal=running && property:ro.boot.revision=rev_0
35    stop vendor.fps_hal
36
37on property:sys.all.modules.ready=1
38    # Update touch firmware if required
39    write /sys/devices/virtual/input/ftm4_touch/check_fw 1
40
41on property:ro.boot.hardware.display=2-1
42    setprop sys.display.low_persistence_mode_brightness 255
43
44on property:persist.vendor.charge.stop.level=* && property:sys.all.modules.ready=1
45    write /sys/module/lge_battery/parameters/charge_stop_level ${persist.vendor.charge.stop.level}
46
47on property:persist.vendor.charge.start.level=* && property:sys.all.modules.ready=1
48    write /sys/module/lge_battery/parameters/charge_start_level ${persist.vendor.charge.start.level}
49