forked from leshak/i9000-leshak-initramfs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
recovery.rc
executable file
·59 lines (42 loc) · 1.12 KB
/
recovery.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
on init
# GyuTae FIX : we should not use system partition!!!!!
# export PATH /sbin:/bin
export PATH /sbin:/system/bin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
mkdir /sdcard
mkdir /system
mkdir /data
mkdir /cache
mkdir /efs
mount tmpfs nodev /tmp
insmod /lib/modules/fsr.ko
insmod /lib/modules/fsr_stl.ko
insmod /lib/modules/rfs_glue.ko
insmod /lib/modules/rfs_fat.ko
insmod /lib/modules/j4fs.ko
mount j4fs /dev/block/stl6 /mnt/.lfs
insmod /lib/modules/dpram.ko
insmod /lib/modules/param.ko
mkdir /sdcard 0000 system system
mkdir /data 0771 system system
mkdir /cache 0770 system cache
mount rfs /dev/block/stl3 /efs nosuid nodev check=no
mount rfs /dev/block/stl9 /system check=no
on boot
# write /sys/class/sec/switch/usb_sel PDA
ifup lo
hostname localhost
domainname localdomain
class_start default
#service console /bin/sh
service console /system/bin/sh
console
service recovery /sbin/recovery
oneshot
service adbd /sbin/adbd recovery
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd