-
Notifications
You must be signed in to change notification settings - Fork 67
/
init.rpi2.rc
42 lines (32 loc) · 965 Bytes
/
init.rpi2.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
on init
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0
write /sys/kernel/mm/ksm/pages_to_scan 100
write /sys/kernel/mm/ksm/sleep_millisecs 500
write /sys/kernel/mm/ksm/run 1
on fs
mount_all /fstab.rpi2
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on boot
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
setprop ro.build.product rpi2
setprop ro.product.device rpi2
# fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
setprop service.adb.tcp.port 5555
start adbd
service dhcpcd_eth0 /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class late_start
disabled
oneshot