blob: afcca7bfb23950696ac18a92eae0830103473f79 [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
NameLess, the Jediff4b2052010-12-31 10:00:10 +010032 # allow system to modify cpufreq control files
33 chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
34 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
35 chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
36 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
37 chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
38 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
39
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010040# adb over network
41on property:service.adb.tcp.port=5555
42 stop adbd
43 start adbd
44on property:service.adb.tcp.port=-1
45 stop adbd
46 start adbd
47
Steve Kondikfe18fc32010-08-20 13:17:37 -040048# Compcache - handle at boot
49service compcache /system/bin/handle_compcache
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010050 class main
Steve Kondikfe18fc32010-08-20 13:17:37 -040051 user root
52 group root
53 oneshot
Ricardo Cerqueira6698e5e2012-11-23 17:15:16 +000054
55# sysinit (/system/etc/init.d)
56service sysinit /system/bin/sysinit
57 user root
58 oneshot
Ricardo Cerqueira79ba9972013-06-12 12:12:18 +010059 disabled