-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
init.ofono-qmi.rc
31 lines (28 loc) · 990 Bytes
/
init.ofono-qmi.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
service dbus /system/bin/dbus-daemon --system --nofork
class main
socket dbus stream 0660 root radio
user radio
group radio
# TODO OFONO_QMI_DEBUG and maybe --debug shouldn't be on in production
# started after mdm9k-boot
service ofonod /system/bin/ofonod --nodetach --debug
disabled
user radio
group radio
setenv OFONO_GOBI_DEVICE /dev/cdc-wdm2
setenv OFONO_GOBI_IFACE wwan2
setenv OFONO_GOBI_SET_RAWIP _
setenv OFONO_QMI_DEBUG 1
# started after mdm9k-boot
service mdm9k-efsd /system/bin/logwrapper /system/bin/mdm9k-efsd
disabled
class core
user system
group radio
# TODO what if the modem needs to be booted again?
# TODO sleep is hacky. without a delay, ofonod comes up in "pre sim" mode. could be a bug on that side exacerbated by racy init.
service mdm9k-boot /system/bin/sh -c "logwrapper /system/bin/mdm9k-boot && start mdm9k-efsd && sleep 40 && start ofonod"
oneshot
class core
user system
group radio