-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.rpi5.rc
45 lines (35 loc) · 1.26 KB
/
init.rpi5.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
#import /vendor/etc/init/hw/init.rpi5.usb.rc
on init
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
# Support legacy paths
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0
on fs
mount_all /vendor/etc/fstab.rpi5
on post-fs-data
# Bluetooth
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on zygote-start
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
mkdir /data/vendor/wifi 0771 wifi wifi
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
on boot
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
# 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