Steve Kondik | a89711a | 2010-07-07 09:06:13 -0400 | [diff] [blame] | 1 | # CyanogenMod Extras |
Koushik Dutta | 5af62eb | 2013-07-27 19:52:40 -0700 | [diff] [blame^] | 2 | import /init.superuser.rc |
Steve Kondik | a89711a | 2010-07-07 09:06:13 -0400 | [diff] [blame] | 3 | |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 4 | on init |
| 5 | export ANDROID_CACHE /cache |
| 6 | export TERMINFO /system/etc/terminfo |
| 7 | export TERM linux |
| 8 | |
| 9 | on 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 Desai | ce88540 | 2013-05-12 16:28:01 +0530 | [diff] [blame] | 13 | mkdir /data/.ssh 0750 root shell |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 14 | |
Ricardo Cerqueira | 6698e5e | 2012-11-23 17:15:16 +0000 | [diff] [blame] | 15 | # Run sysinit |
| 16 | start sysinit |
| 17 | |
Ricardo Cerqueira | 79ba997 | 2013-06-12 12:12:18 +0100 | [diff] [blame] | 18 | on boot |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 19 | 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 |
| 33 | on property:service.adb.tcp.port=5555 |
| 34 | stop adbd |
| 35 | start adbd |
| 36 | on property:service.adb.tcp.port=-1 |
| 37 | stop adbd |
| 38 | start adbd |
| 39 | |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 40 | # Compcache - handle at boot |
| 41 | service compcache /system/bin/handle_compcache |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 42 | class main |
Steve Kondik | fe18fc3 | 2010-08-20 13:17:37 -0400 | [diff] [blame] | 43 | user root |
| 44 | group root |
| 45 | oneshot |
Ricardo Cerqueira | 6698e5e | 2012-11-23 17:15:16 +0000 | [diff] [blame] | 46 | |
| 47 | # sysinit (/system/etc/init.d) |
| 48 | service sysinit /system/bin/sysinit |
| 49 | user root |
| 50 | oneshot |
Ricardo Cerqueira | 79ba997 | 2013-06-12 12:12:18 +0100 | [diff] [blame] | 51 | disabled |