android_device_samsung_c1-c.../recovery.rc
Fábio Silva 2861776e7a Added missing PHONE_STORAGE environment variable and symlink /emmc.
Change-Id: Ib406ea369bd933d9b27381553c53edb6f73f20d1
2011-10-18 17:20:24 -03:00

82 lines
1.7 KiB
Plaintext

on early-init
start ueventd
on init
export PATH /sbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
export PHONE_STORAGE /emmc
symlink /system/etc /etc
mkdir /boot
mkdir /sdcard
mkdir /sd-ext
mkdir /datadata
mkdir /emmc
mkdir /system
mkdir /data
mkdir /cache
mkdir /efs
mount /tmp /tmp tmpfs
mkdir /mnt 0775 root root
on early-fs
# parameter block
mkdir /mnt/.lfs 0755 root root
insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
on fs
mount tmpfs tmpfs /tmp mode=0755
mount ext4 /dev/block/mmcblk0p9 /system wait rw
# SEC_DMCRYPT move mounting efs befor apply_disk_policy, and set group id to system
mkdir /efs
mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
chown radio system /efs
chmod 0771 /efs
# verfiy filesystem (UMS)
exec apply_system_policy /dev/block/mmcblk0p11 vfat
on post-fs
write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
write /proc/sys/kernel/sched_compat_yield 1
write /proc/sys/kernel/sched_child_runs_first 0
on boot
ifup lo
hostname localhost
domainname localdomain
umount /system
class_start default
service ueventd /sbin/ueventd
critical
service console /sbin/sh
console
service recovery /sbin/recovery
service adbd /sbin/adbd recovery
disabled
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd