land: Set subsystem restart to related

Xiaomi used to do this in the kernel, but it is broken in the
OSS kernel due to missing definitions.

Remove the broken kernel code and do it in userspace instead.

Change-Id: I5822cc209d969f3ada898d1bfbdace9bfdfce177
This commit is contained in:
Zhao Wei Liew 2017-01-02 14:08:06 +08:00
parent 6fb1a4b432
commit 2f8822331b

View file

@ -388,6 +388,12 @@ on boot
chown root system /sys/class/leds/infrared/transmit
chown root system /sys/class/leds/infrared/brightness
# Subsystem restart
write /sys/bus/msm_subsys/devices/subsys0/restart_level related
write /sys/bus/msm_subsys/devices/subsys1/restart_level related
write /sys/bus/msm_subsys/devices/subsys2/restart_level related
write /sys/bus/msm_subsys/devices/subsys3/restart_level related
on class_start:late_start
write /proc/sys/net/ipv6/conf/default/accept_ra_defrtr 1