summaryrefslogtreecommitdiffstats
path: root/rootdir/init.smdk4x12.rc
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-12-23 04:37:10 +0530
committerDheeraj CVR <cvr.dheeraj@gmail.com>2014-12-24 01:18:00 +0530
commitbfc2eb03ee7919991bd96a572499dae2df20d34a (patch)
treecfff5e19fb4e45bd86894354f906077e4ba9e678 /rootdir/init.smdk4x12.rc
parent37d6de9500788e99a0f3660ab0005b6a276eb209 (diff)
downloaddevice_samsung_smdk4412-common-bfc2eb03ee7919991bd96a572499dae2df20d34a.tar.gz
device_samsung_smdk4412-common-bfc2eb03ee7919991bd96a572499dae2df20d34a.tar.bz2
device_samsung_smdk4412-common-bfc2eb03ee7919991bd96a572499dae2df20d34a.zip
smdk4412-common: fix LPM
Change-Id: If928f8929e4960566d9f60ed7d804062363f20e8
Diffstat (limited to 'rootdir/init.smdk4x12.rc')
-rwxr-xr-xrootdir/init.smdk4x12.rc35
1 files changed, 35 insertions, 0 deletions
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc
index 78f12e1..16bc954 100755
--- a/rootdir/init.smdk4x12.rc
+++ b/rootdir/init.smdk4x12.rc
@@ -42,6 +42,41 @@ on fs
chown radio system /efs
chmod 0771 /efs
+on charger
+ 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
+
+# CPU Frequency Governor
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
+
+# EHCI runtime enable for LPA
+ write /sys/devices/platform/s5p-ehci/power/control auto
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service debuggerd /system/bin/debuggerd
+
+service ueventd /sbin/ueventd
+ critical
+
+service console /system/bin/sh
+ console
+
+service healthd-charger /sbin/healthd -n
+ critical
+
+service lpm /system/bin/lpm
+ critical
+
on post-fs-data
# we will remap this as /mnt/sdcard with the sdcard fuse tool
mkdir /data/media 0775 media_rw media_rw