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
|
|
|
|
2018-03-11 15:59:09 +00:00
|
|
|
# libqipcrtr4msmipc.so may not be present, on devices that don't need it
|
|
|
|
export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.so
|
|
|
|
|
2020-03-06 19:42:19 +00:00
|
|
|
# -P: find and use raw EFS partitions
|
|
|
|
# -r: avoid writing to storage
|
|
|
|
# -s: enable sync for the mss rproc instance
|
|
|
|
command="/usr/sbin/rmtfs"
|
|
|
|
command_args="-P -r -s"
|
|
|
|
|
|
|
|
# https://github.com/andersson/rmtfs/commit/dfb8f3ed1c8fbde621cd08aaf9e7724a4c55cbd1
|
|
|
|
respawn_delay=1
|
2018-03-11 15:59:09 +00:00
|
|
|
|
2020-03-06 19:42:19 +00:00
|
|
|
depend() {
|
|
|
|
after udev-settle
|
2020-10-07 09:54:13 +00:00
|
|
|
use qrtr-ns
|
2020-03-06 19:42:19 +00:00
|
|
|
}
|