~mil/sxmo-utils

829f8241c736607ab8b704ed315890b79b6bca52 — Stacy Harper 2 months ago af73308
Add Arch handlers to manager daemons in sxmo_modemmonitortoggle
1 files changed, 12 insertions(+), 0 deletions(-)

M scripts/modem/sxmo_modemmonitortoggle.sh
M scripts/modem/sxmo_modemmonitortoggle.sh => scripts/modem/sxmo_modemmonitortoggle.sh +12 -0
@@ 23,6 23,10 @@ daemon_start() {
		"Alpine Linux"|postmarketOS)
			sudo rc-service "$1" start
			;;
		"Arch Linux ARM"|alarm)
			[ "$1" = "modemmanager" ] && set -- ModemManager
			sudo systemctl start "$1"
			;;
	esac
}



@@ 31,6 35,10 @@ daemon_stop() {
		"Alpine Linux"|postmarketOS)
			sudo rc-service "$1" stop
			;;
		"Arch Linux ARM"|alarm)
			[ "$1" = "modemmanager" ] && set -- ModemManager
			sudo systemctl stop "$1"
			;;
	esac
}



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