Add Arch handlers to manager daemons in sxmo_modemmonitortoggle

master
Stacy Harper 3 years ago
parent af733083c0
commit 829f8241c7
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 12
      scripts/modem/sxmo_modemmonitortoggle.sh

@ -23,6 +23,10 @@ daemon_start() {
"Alpine Linux"|postmarketOS) "Alpine Linux"|postmarketOS)
sudo rc-service "$1" start sudo rc-service "$1" start
;; ;;
"Arch Linux ARM"|alarm)
[ "$1" = "modemmanager" ] && set -- ModemManager
sudo systemctl start "$1"
;;
esac esac
} }
@ -31,6 +35,10 @@ daemon_stop() {
"Alpine Linux"|postmarketOS) "Alpine Linux"|postmarketOS)
sudo rc-service "$1" stop sudo rc-service "$1" stop
;; ;;
"Arch Linux ARM"|alarm)
[ "$1" = "modemmanager" ] && set -- ModemManager
sudo systemctl stop "$1"
;;
esac esac
} }
@ -39,6 +47,10 @@ daemon_isrunning() {
"Alpine Linux"|postmarketOS) "Alpine Linux"|postmarketOS)
rc-service "$1" status | grep -q started rc-service "$1" status | grep -q started
;; ;;
"Arch Linux ARM"|alarm)
[ "$1" = "modemmanager" ] && set -- ModemManager
systemctl status "$1" | grep -q running
;;
esac esac
} }

Loading…
Cancel
Save