2018-03-11 15:59:09 +00:00
|
|
|
#!/sbin/openrc-run
|
2020-03-06 19:42:19 +00:00
|
|
|
supervisor=supervise-daemon
|
2018-03-11 15:59:09 +00:00
|
|
|
|
2020-03-06 19:42:19 +00:00
|
|
|
name="RMTFS"
|
|
|
|
description="Qualcomm remote file system service"
|
2018-05-13 06:27:04 +00:00
|
|
|
|
2020-03-06 19:42:19 +00:00
|
|
|
# -P: find and use raw EFS partitions
|
|
|
|
# -r: avoid writing to storage
|
|
|
|
command="/usr/sbin/rmtfs"
|
2020-10-07 11:15:24 +00:00
|
|
|
command_args="-P -r"
|
2020-03-06 19:42:19 +00:00
|
|
|
|
|
|
|
# https://github.com/andersson/rmtfs/commit/dfb8f3ed1c8fbde621cd08aaf9e7724a4c55cbd1
|
|
|
|
respawn_delay=1
|
2018-03-11 15:59:09 +00:00
|
|
|
|
2020-10-07 11:15:24 +00:00
|
|
|
# Downstream hacks: use libqipcrtr4msmipc.so
|
|
|
|
if [ -f /usr/lib/preload/libqipcrtr4msmipc.so ]; then
|
|
|
|
export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.so
|
|
|
|
else
|
|
|
|
# -s: enable sync for the mss rproc instance (works only on mainline)
|
|
|
|
# Basically: start/stop modem remoteproc together with rmtfs
|
|
|
|
command_args="$command_args -s"
|
|
|
|
fi
|
|
|
|
|
2020-03-06 19:42:19 +00:00
|
|
|
depend() {
|
2022-07-01 16:00:31 +00:00
|
|
|
before networkmanager ofono modemmanager
|
2020-03-06 19:42:19 +00:00
|
|
|
after udev-settle
|
2020-10-07 09:54:13 +00:00
|
|
|
use qrtr-ns
|
2020-03-06 19:42:19 +00:00
|
|
|
}
|