-
Notifications
You must be signed in to change notification settings - Fork 0
/
lpm.rc
executable file
·51 lines (35 loc) · 945 Bytes
/
lpm.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
on init
export PATH /sbin:/system/bin
export ANDROID_ROOT /system
mkdir /system
mkdir /data
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/param.ko
insmod /lib/modules/vibrator.ko
mount rfs /dev/block/stl9 /system check=no
mount rfs /dev/block/mmcblk0p2 /data nosuid nodev check=no
mkdir /data/log 0777
mkdir /data/anr 0777
chmod 0666 /dev/log/radio
chmod 0666 /dev/log/main
chmod 0666 /dev/log/event
on boot
# write /sys/class/sec/switch/usb_sel PDA
ifup lo
hostname localhost
domainname localdomain
class_start default
service debuggerd /system/bin/debuggerd
#service console /bin/sh
service console /system/bin/sh
console
service playlpm /system/bin/playlpm
user root
service immvibed /system/bin/immvibed
oneshot
service lpmkey /system/bin/charging_mode
user root