PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lpm.rc

http://github.com/kyapa/sc02b_initramfs
text | 77 lines | 56 code | 21 blank | 0 comment | 0 complexity | 5de8e157f28373578341c36de190a180 MD5 | raw file
 1on early-init
 2    start ueventd
 3
 4on init
 5    export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
 6    export LD_LIBRARY_PATH /vendor/lib:/system/lib
 7    export ANDROID_ROOT /system
 8    export ANDROID_DATA /data
 9    export EXTERNAL_STORAGE /sdcard
10
11    symlink /system/etc /etc
12
13    mkdir /sdcard
14    mkdir /preload
15    mkdir /system
16    mkdir /data
17    mkdir /cache
18    mkdir /efs
19    mkdir /tmp
20    mkdir /dbdata
21
22    mkdir /mnt 0775 root root
23
24    #mount /tmp /tmp tmpfs   
25
26on early-fs
27
28    # rfs drivers
29    insmod /lib/modules/fsr.ko
30    insmod /lib/modules/fsr_stl.ko
31    insmod /lib/modules/rfs_glue.ko
32    insmod /lib/modules/rfs_fat.ko
33
34    # parameter block
35    mkdir /mnt/.lfs 0755 root root
36    insmod /lib/modules/j4fs.ko
37    mount j4fs /dev/block/stl6 /mnt/.lfs
38    insmod /lib/modules/param.ko
39
40on fs
41    mount tmpfs tmpfs /tmp
42    mount rfs /dev/block/stl9 /system check=no
43    #mount rfs /dev/block/stl9 /system ro remount
44
45    exec apply_disk_policy
46
47on boot
48
49    ifup lo
50    hostname localhost
51    domainname localdomain
52
53    class_start default
54
55service ueventd /sbin/ueventd
56    critical
57
58service console /system/bin/sh
59    console
60
61service playlpm /system/bin/playlpm
62    user root
63    oneshot
64
65service immvibed /system/bin/immvibed 
66    oneshot
67
68service lpmkey /system/bin/charging_mode
69    user root
70    oneshot
71
72on property:persist.service.adb.enable=1
73    start adbd
74
75#on property:persist.service.adb.enable=0
76#    stop adbd
77