PageRenderTime 11ms CodeModel.GetById 4ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/fota.rc

http://github.com/kyapa/sc02b_initramfs
text | 79 lines | 59 code | 20 blank | 0 comment | 0 complexity | c85b48f20126b217ec70088738907baa 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
26    mkdir /data 0771 system system
27    chown system system /data
28    chmod 0771 /data 
29        
30on early-fs
31
32    # rfs drivers
33    insmod /lib/modules/fsr.ko
34    insmod /lib/modules/fsr_stl.ko
35    insmod /lib/modules/rfs_glue.ko
36    insmod /lib/modules/rfs_fat.ko
37
38    # parameter block
39    mkdir /mnt/.lfs 0755 root root
40    insmod /lib/modules/j4fs.ko
41    mount j4fs /dev/block/stl6 /mnt/.lfs
42    insmod /lib/modules/param.ko
43
44on fs
45    mount tmpfs tmpfs /tmp
46    mount rfs /dev/block/stl9 /system check=no
47    #mount rfs /dev/block/stl9 /system ro remount
48
49    mkdir /data
50    #mount rfs /dev/block/mmcblk0p2 /data nosuid nodev check=no
51    mount rfs /dev/block/mmcblk0p2 /data nosuid nodev crypt check=no
52    
53    mount vfat /dev/block/mmcblk0p1 /sdcard 
54    chown system system /data
55    chmod 0771 /data
56    chmod 0777 /data/fota
57
58on boot
59
60    ifup lo
61    hostname localhost
62    domainname localdomain
63
64    class_start default
65
66service ueventd /sbin/ueventd
67    critical
68
69service console /system/bin/sh
70    console
71
72service redbend_ua /sbin/redbend_ua all
73    oneshot
74
75on property:persist.service.adb.enable=1
76    start adbd
77
78#on property:persist.service.adb.enable=0
79#    stop adbd