pmaports/modem/msm-modem/msm-modem-downstream.initd
Minecrell 2d10cc697a
modem/msm-modem(-downstream): start modem if necessary (MR 1640)
On some downstream kernels it seems like we need to explicitly keep
/dev/subsys_modem open (without writing anything), otherwise the modem
will be stopped (or never started). Weird.
2020-10-25 18:35:21 +01:00

21 lines
383 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
name="Modem Subsystem"
description="Qualcomm MSM modem subsystem service"
_subsys="/dev/subsys_modem"
command="/usr/bin/keepfileopen"
command_args="$_subsys"
respawn_delay=1
respawn_max=3
depend() {
need rmtfs
}
start() {
# Subsystem misc file is only available on some downstream kernels
[ ! -c "$_subsys" ] || default_start
}