modem/msm-modem: do not return non-zero if no SIM is detected
MM does other important things (like enable GPS) even if no SIM is installed, but when this returns non-zero after timing out waiting for a SIM then we lose the ability to have MM enable GPS (for example). Other failures related to selecting SIMs should still trigger a non-zero exit and block MM (I guess), but if we waited a while and no SIM shows up then let MM start anyways. Signed-off-by: Clayton Craft <craftyguy@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7634>
This commit is contained in:
parent
e6852ed946
commit
5fe98f2476
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
pkgname=msm-modem
|
||||
pkgver=11
|
||||
pkgver=12
|
||||
pkgrel=0
|
||||
pkgdesc="Common support for Qualcomm MSM modems"
|
||||
url="https://postmarketos.org/"
|
||||
|
|
@ -90,7 +90,7 @@ openrc() {
|
|||
sha512sums="
|
||||
ac9ed0f6ec07ef813ce3a539919acbe8a5a70d5765a5fff267674a3fb239cdb1dba58a14d72a64f990bdcb87c6476d30ef7add21f152df7cb48e36932ef14dbb keepfileopen.c
|
||||
3172f8c409f552f13d1da29f14ab6c79072cd6da4acab151a1a0ea1858a416974456852609f14fe29cf97a6a45e60b99d0a57ddcde751da243ee5ac6fa8b672c msm-modem-downstream.initd
|
||||
cea8a74d705a53e0f8a5d5da11f3ffc8ba25410906c4fe048617cb5a0d18b86070129d51fc7d6ec90906abe0d0e1dc2df1b19206824eb106237af2c9737544a6 msm-modem-uim-selection
|
||||
5ad3484065c8b782cee725fcbc86a09c6b59df5555d88dc84637126f48513da543d08b8c930cc5d3c8580575c0625b3684d71704ee7e182ed1ed80ae4453cef3 msm-modem-uim-selection
|
||||
abc985c76170601a22a1d5ab0c68bdf63fa2be2796593048ea3ba0d7e5cd26b2fcee2043703e46c2910c53b01e9e8092b7a8e715d57baf243a5f4612dd595443 msm-modem-uim-selection.confd
|
||||
076d6de36527ac853674c2fc94120e711c1f77c4936977cf353a319f73beed21b9b0b81728572c8894e7dface3ecb5686535f0967de19a6bc5356d44e9ea8756 msm-modem-uim-selection.initd
|
||||
a12d8d6994ae6e46b0d131c9f5c475ccc70ab7aaf5839b19c1917410fb3c90a208bc0c6e07c90cf251ea6e445741af83a9f77bf9fcb30490bb0fbfc07aa8cbb9 msm-modem-uim-selection.service
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ do
|
|||
if [ "$count" -ge "$SIM_WAIT_TIME" ]
|
||||
then
|
||||
echo "No sim detected after $SIM_WAIT_TIME seconds."
|
||||
exit 4
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue