summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rootdir/lpm.rc18
1 files changed, 8 insertions, 10 deletions
diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc
index f1601f9..04cba30 100644
--- a/rootdir/lpm.rc
+++ b/rootdir/lpm.rc
@@ -2,7 +2,6 @@ on early-init
start ueventd
on init
-
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_ROOT /system
@@ -21,25 +20,20 @@ on init
mkdir /tmp
mkdir /dbdata
mkdir /mnt 0775 root root
- #mount /tmp /tmp tmpfs
-
-on early-fs
mount ext4 /dev/block/platform/dw_mmc/by-name/SYSTEM /system ro wait noatime
mount ext4 /dev/block/platform/dw_mmc/by-name/USERDATA /data rw wait noatime nosuid nodev discard noauto_da_alloc journal_async_commit
+
mkdir /data/log 0777
chmod 0666 /dev/log/radio
chmod 0666 /dev/log/main
chmod 0666 /dev/log/event
-on boot
-# write /sys/class/sec/switch/usb_sel PDA
-
-# CPU Frequency Governor
+ # CPU Frequency Governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
-# EHCI runtime enable for LPA
+ # EHCI runtime enable for LPA
write /sys/devices/platform/s5p-ehci/power/control auto
ifup lo
@@ -56,8 +50,12 @@ service ueventd /sbin/ueventd
service console /system/bin/sh
console
+service healthd-charger /sbin/healthd -n
+ critical
+ seclabel u:r:healthd:s0
+
service lpm /system/bin/lpm
- user root
+ critical
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd