# Sourced by Void's /etc/sv/rmtfs/run.
#
# rmtfs starts the modem (-s), and the modem asks tqftpserv at once for the
# WLAN firmware (wlanmdsp.mbn).  Both services start together in stage 2;
# when tqftpserv was not up yet, the modem's WLAN domain never started, the
# modem crashed 40 s later ("fatal error without message") and WLAN came
# only after its recovery -- 3 boots of 10 (2026-11-08).  So rmtfs waits
# for tqftpserv; runsv runs this again until it is up.
sv check tqftpserv >/dev/null 2>&1 || exit 1

# Void's defaults: read-only (the modem's writes to its EFS partitions stay
# in memory), the partitions themselves, start the modem
OPTS="-r -P -s"
