blob: e5f55494f2461f7426458562c07079ec86f8df5d [file] [log] [blame]
Steve Kondika89711a2010-07-07 09:06:13 -04001# CyanogenMod Extras
2
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +01003on init
4 export ANDROID_CACHE /cache
5 export TERMINFO /system/etc/terminfo
6 export TERM linux
7
8on 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
13on boot
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000014 # Run sysinit
15 start sysinit
16
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010017 chown system system /sys/block/mmcblk0/queue/scheduler
18 chmod 0664 /sys/block/mmcblk0/queue/scheduler
19
20# allow system to modify ksm control files
21 chown root system /sys/kernel/mm/ksm/pages_to_scan
22 chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
23 chown root system /sys/kernel/mm/ksm/sleep_millisecs
24 chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
25 chown root system /sys/kernel/mm/ksm/run
26 chmod 0664 /sys/kernel/mm/ksm/run
27 write /sys/kernel/mm/ksm/sleep_millisecs 1500
28 write /sys/kernel/mm/ksm/pages_to_scan 256
29
30# adb over network
31on property:service.adb.tcp.port=5555
32 stop adbd
33 start adbd
34on property:service.adb.tcp.port=-1
35 stop adbd
36 start adbd
37
Steve Kondikfe18fc32010-08-20 13:17:37 -040038# Compcache - handle at boot
39service compcache /system/bin/handle_compcache
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010040 class main
Steve Kondikfe18fc32010-08-20 13:17:37 -040041 user root
42 group root
43 oneshot
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000044
45# sysinit (/system/etc/init.d)
46service sysinit /system/bin/sysinit
47 user root
48 oneshot