android_device_samsung_c1-c.../recovery.rc

79 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-06-05 15:39:34 +00:00
on early-init
start ueventd
on init
2011-06-10 22:05:04 +00:00
export PATH /sbin
2011-06-05 15:39:34 +00:00
export ANDROID_ROOT /system
export ANDROID_DATA /data
2011-06-10 22:05:04 +00:00
export EXTERNAL_STORAGE /sdcard
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
symlink /system/etc /etc
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
mkdir /boot
mkdir /sdcard
mkdir /sd-ext
mkdir /datadata
mkdir /emmc
2011-06-05 15:39:34 +00:00
mkdir /system
2011-06-10 22:05:04 +00:00
mkdir /data
mkdir /cache
2011-06-05 15:39:34 +00:00
mkdir /efs
2011-06-10 22:05:04 +00:00
mount /tmp /tmp tmpfs
mkdir /mnt 0775 root root
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
on early-fs
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
# parameter block
mkdir /mnt/.lfs 0755 root root
insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
on fs
mount tmpfs tmpfs /tmp mode=0755
2011-06-11 14:31:29 +00:00
mount ext4 /dev/block/mmcblk0p9 /system wait rw
2011-06-10 22:05:04 +00:00
# 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
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
# verfiy filesystem (UMS)
exec apply_system_policy /dev/block/mmcblk0p11 vfat
2011-06-05 15:39:34 +00:00
2011-06-10 22:05:04 +00:00
on post-fs
2011-06-05 15:39:34 +00:00
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
2011-06-10 22:05:04 +00:00
2011-06-05 15:39:34 +00:00
ifup lo
hostname localhost
domainname localdomain
class_start default
service ueventd /sbin/ueventd
critical
service console /sbin/sh
console
service recovery /sbin/recovery
2011-06-10 22:05:04 +00:00
service adbd /sbin/adbd recovery
2011-06-05 15:39:34 +00:00
disabled
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd