Steve Kondik | a89711a | 2010-07-07 09:06:13 -0400 | [diff] [blame] | 1 | # CyanogenMod Extras |
| 2 | |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame^] | 3 | on init |
| 4 | export ANDROID_CACHE /cache |
| 5 | export TERMINFO /system/etc/terminfo |
| 6 | export TERM linux |
| 7 | |
| 8 | on post-fs-data |
| 9 | mkdir /cache/dalvik-cache 0771 system system |
| 10 | chown system system /cache/dalvik-cache |
| 11 | chmod 0771 /cache/dalvik-cache |
| 12 | |
| 13 | on boot |
| 14 | chown system system /sys/block/mmcblk0/queue/scheduler |
| 15 | chmod 0664 /sys/block/mmcblk0/queue/scheduler |
| 16 | |
| 17 | # allow system to modify ksm control files |
| 18 | chown root system /sys/kernel/mm/ksm/pages_to_scan |
| 19 | chmod 0664 /sys/kernel/mm/ksm/pages_to_scan |
| 20 | chown root system /sys/kernel/mm/ksm/sleep_millisecs |
| 21 | chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs |
| 22 | chown root system /sys/kernel/mm/ksm/run |
| 23 | chmod 0664 /sys/kernel/mm/ksm/run |
| 24 | write /sys/kernel/mm/ksm/sleep_millisecs 1500 |
| 25 | write /sys/kernel/mm/ksm/pages_to_scan 256 |
| 26 | |
| 27 | # adb over network |
| 28 | on property:service.adb.tcp.port=5555 |
| 29 | stop adbd |
| 30 | start adbd |
| 31 | on property:service.adb.tcp.port=-1 |
| 32 | stop adbd |
| 33 | start adbd |
| 34 | |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 35 | # Compcache - handle at boot |
| 36 | service compcache /system/bin/handle_compcache |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame^] | 37 | class main |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 38 | user root |
| 39 | group root |
| 40 | oneshot |