modem/msm-modem: add systemd service file
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7424>
This commit is contained in:
parent
0af1e1e7b5
commit
05fb3681bc
2 changed files with 20 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
pkgname=msm-modem
|
||||
pkgver=8
|
||||
pkgrel=1
|
||||
pkgver=9
|
||||
pkgrel=0
|
||||
pkgdesc="Common support for Qualcomm MSM modems"
|
||||
url="https://postmarketos.org/"
|
||||
arch="armhf armv7 aarch64"
|
||||
|
|
@ -10,6 +10,7 @@ subpackages="
|
|||
$pkgname-downstream
|
||||
$pkgname-downstream-openrc:downstream_openrc
|
||||
$pkgname-openrc
|
||||
$pkgname-systemd
|
||||
$pkgname-uim-selection:uim_selection
|
||||
$pkgname-uim-selection-openrc:uim_selection_openrc
|
||||
"
|
||||
|
|
@ -19,6 +20,7 @@ source="
|
|||
msm-modem-uim-selection
|
||||
msm-modem-uim-selection.confd
|
||||
msm-modem-uim-selection.initd
|
||||
msm-modem-uim-selection.service
|
||||
udev-downstream.rules
|
||||
"
|
||||
options="!check"
|
||||
|
|
@ -26,6 +28,8 @@ options="!check"
|
|||
package() {
|
||||
install -Dm755 "$srcdir"/msm-modem-uim-selection \
|
||||
-t "$pkgdir"/usr/libexec/
|
||||
install -Dm644 "$srcdir"/msm-modem-uim-selection.service \
|
||||
-t "$pkgdir"/usr/lib/systemd/system/
|
||||
}
|
||||
|
||||
uim_selection() {
|
||||
|
|
@ -75,5 +79,6 @@ sha512sums="
|
|||
cea8a74d705a53e0f8a5d5da11f3ffc8ba25410906c4fe048617cb5a0d18b86070129d51fc7d6ec90906abe0d0e1dc2df1b19206824eb106237af2c9737544a6 msm-modem-uim-selection
|
||||
abc985c76170601a22a1d5ab0c68bdf63fa2be2796593048ea3ba0d7e5cd26b2fcee2043703e46c2910c53b01e9e8092b7a8e715d57baf243a5f4612dd595443 msm-modem-uim-selection.confd
|
||||
076d6de36527ac853674c2fc94120e711c1f77c4936977cf353a319f73beed21b9b0b81728572c8894e7dface3ecb5686535f0967de19a6bc5356d44e9ea8756 msm-modem-uim-selection.initd
|
||||
a12d8d6994ae6e46b0d131c9f5c475ccc70ab7aaf5839b19c1917410fb3c90a208bc0c6e07c90cf251ea6e445741af83a9f77bf9fcb30490bb0fbfc07aa8cbb9 msm-modem-uim-selection.service
|
||||
2a511c2e249d0ec5a52f04ffe1ef3d29cf3c4813143b103e54879ff89176ea45b1a5ffe21cb7dc2f1cdd84c3102ba45ef9926ed37e00b1ae12a36d01de35ea5a udev-downstream.rules
|
||||
"
|
||||
|
|
|
|||
13
modem/msm-modem/msm-modem-uim-selection.service
Normal file
13
modem/msm-modem/msm-modem-uim-selection.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=MSM Modem UIM Slot Selection
|
||||
Before=ModemManager.service
|
||||
After=rmtfs.service
|
||||
Requires=rmtfs.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/libexec/msm-modem-uim-selection
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
RequiredBy=ModemManager.service
|
||||
Loading…
Add table
Add a link
Reference in a new issue