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 |
Chirayu Desai | ce88540 | 2013-05-12 16:28:01 +0530 | [diff] [blame] | 12 | mkdir /data/.ssh 0750 root shell |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 13 | |
Ricardo Cerqueira | 6698e5e | 2012-11-23 17:15:16 +0000 | [diff] [blame] | 14 | # Run sysinit |
| 15 | start sysinit |
| 16 | |
Ricardo Cerqueira | 79ba997 | 2013-06-12 12:12:18 +0100 | [diff] [blame^] | 17 | on boot |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 18 | chown system system /sys/block/mmcblk0/queue/scheduler |
| 19 | chmod 0664 /sys/block/mmcblk0/queue/scheduler |
| 20 | |
| 21 | # allow system to modify ksm control files |
| 22 | chown root system /sys/kernel/mm/ksm/pages_to_scan |
| 23 | chmod 0664 /sys/kernel/mm/ksm/pages_to_scan |
| 24 | chown root system /sys/kernel/mm/ksm/sleep_millisecs |
| 25 | chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs |
| 26 | chown root system /sys/kernel/mm/ksm/run |
| 27 | chmod 0664 /sys/kernel/mm/ksm/run |
| 28 | write /sys/kernel/mm/ksm/sleep_millisecs 1500 |
| 29 | write /sys/kernel/mm/ksm/pages_to_scan 256 |
| 30 | |
| 31 | # adb over network |
| 32 | on property:service.adb.tcp.port=5555 |
| 33 | stop adbd |
| 34 | start adbd |
| 35 | on property:service.adb.tcp.port=-1 |
| 36 | stop adbd |
| 37 | start adbd |
| 38 | |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 39 | # Compcache - handle at boot |
| 40 | service compcache /system/bin/handle_compcache |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 41 | class main |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 42 | user root |
| 43 | group root |
| 44 | oneshot |
Ricardo Cerqueira | 6698e5e | 2012-11-23 17:15:16 +0000 | [diff] [blame] | 45 | |
| 46 | # sysinit (/system/etc/init.d) |
| 47 | service sysinit /system/bin/sysinit |
| 48 | user root |
| 49 | oneshot |
Ricardo Cerqueira | 79ba997 | 2013-06-12 12:12:18 +0100 | [diff] [blame^] | 50 | disabled |