diff options
Diffstat (limited to 'rootdir')
-rwxr-xr-x | rootdir/init.smdk4x12.rc | 35 | ||||
-rw-r--r-- | rootdir/lpm.rc | 72 |
2 files changed, 35 insertions, 72 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 diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc deleted file mode 100644 index 04cba30..0000000 --- a/rootdir/lpm.rc +++ /dev/null @@ -1,72 +0,0 @@ -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 - export ANDROID_DATA /data - export EXTERNAL_STORAGE /sdcard - - symlink /system/etc /etc - symlink /system/vendor /vendor - - mkdir /sdcard - mkdir /preload - mkdir /system - mkdir /data - mkdir /cache - mkdir /efs - mkdir /tmp - mkdir /dbdata - mkdir /mnt 0775 root root - - 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 pegasusq - - # 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 - seclabel u:r:healthd:s0 - -service lpm /system/bin/lpm - critical - -# adbd is controlled by the persist.service.adb.enable system property -service adbd /sbin/adbd - disabled - -# adbd on at boot in emulator -on property:ro.kernel.qemu=1 - start adbd - -on property:persist.service.adb.enable=1 - start adbd - -on property:persist.service.adb.enable=0 - stop adbd |