replicant-vendor_replicant/prebuilt/common/etc/init.local.rc
Koushik Dutta 5af62eb1b1 Superuser 4.3 fix.
Change-Id: I8849d7ba9c7cebfb14d9f09a8220430b5b97b3ff
2013-07-27 20:31:24 -07:00

52 lines
1.3 KiB
Plaintext

# CyanogenMod Extras
import /init.superuser.rc
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
mkdir /data/.ssh 0750 root shell
# Run sysinit
start sysinit
on boot
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
# Compcache - handle at boot
service compcache /system/bin/handle_compcache
class main
user root
group root
oneshot
# sysinit (/system/etc/init.d)
service sysinit /system/bin/sysinit
user root
oneshot
disabled