pmaports/modem/msm-modem/msm-modem-uim-selection.initd
Clayton Craft 49b25396b0
modem/msm-modem: move service logic to standalone script (MR 6173)
This allows other things to run the logic, like a systemd unit
2025-02-12 14:56:35 -08:00

20 lines
516 B
Text

#!/sbin/openrc-run
# This script tries to automatically configure UIM application for Qualcomm QMI
# modems with more than one sim slot.
name="UIM Slot selection"
description="Select UIM slot and application on the embedded QMI nodem."
depend() {
need rmtfs
before ofono
before modemmanager
}
# Use the service start method instead of command= because we want to block
# other services while the modem isn't ready yet.
start() {
SIM_WAIT_TIME="$sim_wait_time" /usr/libexec/msm-modem-uim-selection
eend $?
}