blob: d62c1c24b71d23c6cedea9d3cf1ccb160fd546eb [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
Chirayu Desaice885402013-05-12 16:28:01 +053012 mkdir /data/.ssh 0750 root shell
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010013
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000014 # Run sysinit
15 start sysinit
16
Ricardo Cerqueira79ba9972013-06-12 12:12:18 +010017on boot
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010018 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
32on property:service.adb.tcp.port=5555
33 stop adbd
34 start adbd
35on property:service.adb.tcp.port=-1
36 stop adbd
37 start adbd
38
Steve Kondikfe18fc32010-08-20 13:17:37 -040039# Compcache - handle at boot
40service compcache /system/bin/handle_compcache
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010041 class main
Steve Kondikfe18fc32010-08-20 13:17:37 -040042 user root
43 group root
44 oneshot
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000045
46# sysinit (/system/etc/init.d)
47service sysinit /system/bin/sysinit
48 user root
49 oneshot
Ricardo Cerqueira79ba9972013-06-12 12:12:18 +010050 disabled