2010-07-07 13:06:13 +00:00
|
|
|
# CyanogenMod Extras
|
|
|
|
|
2012-10-18 15:38:25 +00:00
|
|
|
on init
|
|
|
|
export ANDROID_CACHE /cache
|
|
|
|
export TERMINFO /system/etc/terminfo
|
|
|
|
export TERM linux
|
|
|
|
|
|
|
|
on post-fs-data
|
|
|
|
mkdir /cache/dalvik-cache 0771 system system
|
|
|
|
chown system system /cache/dalvik-cache
|
|
|
|
chmod 0771 /cache/dalvik-cache
|
2013-05-12 10:58:01 +00:00
|
|
|
mkdir /data/.ssh 0750 root shell
|
2012-10-18 15:38:25 +00:00
|
|
|
|
2012-11-23 17:15:16 +00:00
|
|
|
# Run sysinit
|
|
|
|
start sysinit
|
|
|
|
|
2013-06-12 11:12:18 +00:00
|
|
|
on boot
|
2012-10-18 15:38:25 +00:00
|
|
|
chown system system /sys/block/mmcblk0/queue/scheduler
|
|
|
|
chmod 0664 /sys/block/mmcblk0/queue/scheduler
|
|
|
|
|
|
|
|
# allow system to modify ksm control files
|
|
|
|
chown root system /sys/kernel/mm/ksm/pages_to_scan
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
|
|
|
|
chown root system /sys/kernel/mm/ksm/sleep_millisecs
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
|
|
|
|
chown root system /sys/kernel/mm/ksm/run
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/run
|
|
|
|
write /sys/kernel/mm/ksm/sleep_millisecs 1500
|
|
|
|
write /sys/kernel/mm/ksm/pages_to_scan 256
|
|
|
|
|
|
|
|
# adb over network
|
|
|
|
on property:service.adb.tcp.port=5555
|
|
|
|
stop adbd
|
|
|
|
start adbd
|
|
|
|
on property:service.adb.tcp.port=-1
|
|
|
|
stop adbd
|
|
|
|
start adbd
|
|
|
|
|
2010-08-20 17:17:37 +00:00
|
|
|
# Compcache - handle at boot
|
|
|
|
service compcache /system/bin/handle_compcache
|
2012-10-18 15:38:25 +00:00
|
|
|
class main
|
2010-08-20 17:17:37 +00:00
|
|
|
user root
|
|
|
|
group root
|
|
|
|
oneshot
|
2012-11-23 17:15:16 +00:00
|
|
|
|
|
|
|
# sysinit (/system/etc/init.d)
|
|
|
|
service sysinit /system/bin/sysinit
|
|
|
|
user root
|
|
|
|
oneshot
|
2013-06-12 11:12:18 +00:00
|
|
|
disabled
|