In version 1.1.1, the new install target in the Makefile was used to
install rmtfs. This installs rmtfs to /usr/bin instead of the expected
/usr/sbin. Use the new /usr/bin directory for the OpenRC service file so
rmtfs can keep working under OpenRC.
Fixes: f7052461da ("modem/rmtfs: subpackage -systemd")
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7517>
36 lines
884 B
Plaintext
36 lines
884 B
Plaintext
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
|
|
name="RMTFS"
|
|
description="Qualcomm remote file system service"
|
|
|
|
command="/usr/bin/rmtfs"
|
|
|
|
command_args=""
|
|
if [ -z "$rmtfs_files_path" ]; then
|
|
command_args="$command_args -P"
|
|
else
|
|
command_args="$command_args -o $rmtfs_files_path"
|
|
fi
|
|
if [ "$rmtfs_avoid_writing" = "true" ]; then
|
|
command_args="$command_args -r"
|
|
fi
|
|
|
|
# https://github.com/andersson/rmtfs/commit/dfb8f3ed1c8fbde621cd08aaf9e7724a4c55cbd1
|
|
respawn_delay=1
|
|
|
|
# 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
|
|
|
|
depend() {
|
|
before networkmanager ofono modemmanager
|
|
after udev-settle
|
|
use qrtr-ns
|
|
}
|