blob: 2a31cc3325bdfc9e693ed153184c0e30bde37a31 [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
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
28on property:service.adb.tcp.port=5555
29 stop adbd
30 start adbd
31on property:service.adb.tcp.port=-1
32 stop adbd
33 start adbd
34
Steve Kondikfe18fc32010-08-20 13:17:37 -040035# Compcache - handle at boot
36service compcache /system/bin/handle_compcache
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010037 class main
Steve Kondikfe18fc32010-08-20 13:17:37 -040038 user root
39 group root
40 oneshot