blob: 9cdc8eae80602e3634c0a07dba678a6f0567f80e [file] [log] [blame]
Steve Kondika89711a2010-07-07 09:06:13 -04001# CyanogenMod Extras
Koushik Dutta5af62eb2013-07-27 19:52:40 -07002import /init.superuser.rc
Steve Kondika89711a2010-07-07 09:06:13 -04003
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +01004on init
5 export ANDROID_CACHE /cache
6 export TERMINFO /system/etc/terminfo
7 export TERM linux
8
9on post-fs-data
10 mkdir /cache/dalvik-cache 0771 system system
11 chown system system /cache/dalvik-cache
12 chmod 0771 /cache/dalvik-cache
Chirayu Desaice885402013-05-12 16:28:01 +053013 mkdir /data/.ssh 0750 root shell
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010014
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000015 # Run sysinit
16 start sysinit
17
Ricardo Cerqueira79ba9972013-06-12 12:12:18 +010018on boot
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010019 chown system system /sys/block/mmcblk0/queue/scheduler
20 chmod 0664 /sys/block/mmcblk0/queue/scheduler
21
22# allow system to modify ksm control files
23 chown root system /sys/kernel/mm/ksm/pages_to_scan
24 chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
25 chown root system /sys/kernel/mm/ksm/sleep_millisecs
26 chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
27 chown root system /sys/kernel/mm/ksm/run
28 chmod 0664 /sys/kernel/mm/ksm/run
29 write /sys/kernel/mm/ksm/sleep_millisecs 1500
30 write /sys/kernel/mm/ksm/pages_to_scan 256
31
32# adb over network
33on property:service.adb.tcp.port=5555
34 stop adbd
35 start adbd
36on property:service.adb.tcp.port=-1
37 stop adbd
38 start adbd
39
Steve Kondikfe18fc32010-08-20 13:17:37 -040040# Compcache - handle at boot
41service compcache /system/bin/handle_compcache
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010042 class main
Steve Kondikfe18fc32010-08-20 13:17:37 -040043 user root
44 group root
45 oneshot
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000046
47# sysinit (/system/etc/init.d)
48service sysinit /system/bin/sysinit
49 user root
50 oneshot
Ricardo Cerqueira79ba9972013-06-12 12:12:18 +010051 disabled