modem/rmtfs: Implement configuration with rmtfs.confd (MR 4250)

This commit is contained in:
Anton Bambura 2023-07-14 18:36:52 +03:00 committed by Pablo Correa Gómez
parent 5eaa998a50
commit caa4101bfb
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79
3 changed files with 20 additions and 5 deletions

View File

@ -2,7 +2,7 @@
pkgname=rmtfs pkgname=rmtfs
pkgver=0.2_git20220718 pkgver=0.2_git20220718
_commit="695d0668ffa6e2a4bf6e676f3c58a444a5d67690" _commit="695d0668ffa6e2a4bf6e676f3c58a444a5d67690"
pkgrel=1 pkgrel=2
pkgdesc="Qualcomm Remote Filesystem Service Implementation" pkgdesc="Qualcomm Remote Filesystem Service Implementation"
url="https://github.com/andersson/rmtfs" url="https://github.com/andersson/rmtfs"
arch="all" arch="all"
@ -11,6 +11,7 @@ makedepends="eudev-dev qrtr-dev"
subpackages="$pkgname-doc $pkgname-openrc" subpackages="$pkgname-doc $pkgname-openrc"
source=" source="
rmtfs-$_commit.tar.gz::https://github.com/andersson/rmtfs/archive/$_commit.tar.gz rmtfs-$_commit.tar.gz::https://github.com/andersson/rmtfs/archive/$_commit.tar.gz
rmtfs.confd
rmtfs.initd rmtfs.initd
udev.rules udev.rules
0001-add-modem_tng-alias-for-tunning-partition.patch 0001-add-modem_tng-alias-for-tunning-partition.patch
@ -25,13 +26,15 @@ build() {
package() { package() {
install -Dm755 rmtfs "$pkgdir"/usr/sbin/rmtfs install -Dm755 rmtfs "$pkgdir"/usr/sbin/rmtfs
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/65-$pkgname.rules" install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/65-$pkgname.rules"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
} }
sha512sums=" sha512sums="
3ccd33ad29c1a485eea475ee54d5984f560cdda99d356e17b315f1cd718c2e9f1992fdc76269877bcbdf8ee2b82476a7738d0b1abb50cbed5c386ee11043010e rmtfs-695d0668ffa6e2a4bf6e676f3c58a444a5d67690.tar.gz 3ccd33ad29c1a485eea475ee54d5984f560cdda99d356e17b315f1cd718c2e9f1992fdc76269877bcbdf8ee2b82476a7738d0b1abb50cbed5c386ee11043010e rmtfs-695d0668ffa6e2a4bf6e676f3c58a444a5d67690.tar.gz
b75a2e051661b6088c3db7071fc2f43b97ecf68a0c35addefd34f6fa11d23429a890313d14791566dfc97230192b999e4cc953797e6e32d07dc8f6c61813f9f3 rmtfs.initd f27225e88be7906b0987bfc6fff4f2d5fe1be835d6df4299b7f240a9bf48f4d8cc635353e845d61c291e7857b059933cc567e39b03c7c655e3205bbcbacae3d3 rmtfs.confd
12215677a772a7233f8da1b41f4aa16f5bc8f2e10385882b1cae23d131f47b03524b7cdf519c1354354bbe353bdbefb15e2d9349894916a1cf6dc951a29d7a44 rmtfs.initd
cb2435c159d81d3a40d30e1355c82a3d560dc2df7d05fee95085bc80e492ac93a728258f2f1b463c04a964979760990c8c9176b22cb585cbec19ab285cd45440 udev.rules cb2435c159d81d3a40d30e1355c82a3d560dc2df7d05fee95085bc80e492ac93a728258f2f1b463c04a964979760990c8c9176b22cb585cbec19ab285cd45440 udev.rules
2c48e3e97838eb2b779075263ef688bc48dde5cc9fc8f055e8ee67cc115228ab59e9466faa89dd817812ee9e3219e8ca331d766e84ad383a1b9706cbbdc2c6fd 0001-add-modem_tng-alias-for-tunning-partition.patch 2c48e3e97838eb2b779075263ef688bc48dde5cc9fc8f055e8ee67cc115228ab59e9466faa89dd817812ee9e3219e8ca331d766e84ad383a1b9706cbbdc2c6fd 0001-add-modem_tng-alias-for-tunning-partition.patch
" "

5
modem/rmtfs/rmtfs.confd Normal file
View File

@ -0,0 +1,5 @@
# Path to read EFS files. If unset it will be read from partitions
#rmtfs_files_path="/var/lib/rmtfs"
# Avoid writing to storage
rmtfs_avoid_writing="true"

View File

@ -4,10 +4,17 @@ supervisor=supervise-daemon
name="RMTFS" name="RMTFS"
description="Qualcomm remote file system service" description="Qualcomm remote file system service"
# -P: find and use raw EFS partitions
# -r: avoid writing to storage
command="/usr/sbin/rmtfs" command="/usr/sbin/rmtfs"
command_args="-P -r"
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 # https://github.com/andersson/rmtfs/commit/dfb8f3ed1c8fbde621cd08aaf9e7724a4c55cbd1
respawn_delay=1 respawn_delay=1