aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Brissenden <sbrissen@hotmail.com>2014-10-01 18:00:00 +0000
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-10-01 18:00:00 +0000
commit4a0fa49bd890f127a7ab485168d6d30b206a8b30 (patch)
tree8feeada1e8c796549f3e33662b167075ec8ab94e
parentb2394075be8600974f61141146558707aeb7c58c (diff)
parent2570aed627ccfc3f43b3fcb9af5ac0ce240a507d (diff)
downloaddevice_samsung_kona-common-4a0fa49bd890f127a7ab485168d6d30b206a8b30.tar.gz
device_samsung_kona-common-4a0fa49bd890f127a7ab485168d6d30b206a8b30.tar.bz2
device_samsung_kona-common-4a0fa49bd890f127a7ab485168d6d30b206a8b30.zip
Merge "LPM: KitKat bootloader compatibility fix" into cm-11.0
-rw-r--r--rootdir/lpm.rc47
1 files changed, 21 insertions, 26 deletions
diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc
index 1eed990..4be4f98 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
@@ -19,46 +18,43 @@ on init
mkdir /efs
mkdir /tmp
mkdir /dbdata
- mkdir /mnt 0775 root root
- #mount /tmp /tmp tmpfs
-
-on early-fs
-# insmod /lib/modules/vibrator.ko
+ mkdir /mnt 0775 root root
mount ext4 /dev/block/platform/dw_mmc/by-name/SYSTEM /system ro wait noatime
- mkdir /data/log 0777
-
- chmod 0666 /dev/log/radio
- chmod 0666 /dev/log/main
- chmod 0666 /dev/log/event
+ mkdir /data/log 0777
-on boot
-# write /sys/class/sec/switch/usb_sel PDA
+ chmod 0666 /dev/log/radio
+ chmod 0666 /dev/log/main
+ chmod 0666 /dev/log/event
-# CPU Frequency Governor
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
+ # CPU Frequency Governor
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
-# EHCI runtime enable for LPA
- write /sys/devices/platform/s5p-ehci/power/control auto
+ # EHCI runtime enable for LPA
+ write /sys/devices/platform/s5p-ehci/power/control auto
- ifup lo
- hostname localhost
- domainname localdomain
+ ifup lo
+ hostname localhost
+ domainname localdomain
- class_start default
+ class_start default
service debuggerd /system/bin/debuggerd
service ueventd /sbin/ueventd
- critical
+ critical
#service console /bin/sh
service console /system/bin/sh
- console
-
+ 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
@@ -73,4 +69,3 @@ on property:persist.service.adb.enable=1
on property:persist.service.adb.enable=0
stop adbd
-