Package ModemManager: Scripts

Post install

# Don't restart service during upgrade:
# the network can be via modem controlled
# by ModemManager itself.
#post_service ModemManager
SYSTEMCTL=systemctl
if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
	"$SYSTEMCTL" daemon-reload ||:
	if [ "$1" -eq 1 ]; then
		"$SYSTEMCTL" -q preset ModemManager.service||:
	fi
fi

Pre uninstall

# Don't stop service:
# the network can be via modem controlled
# by ModemManager itself.
#preun_service ModemManager
if [ "$1" -eq 0 ]; then
	SYSTEMCTL=systemctl
	if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
		"$SYSTEMCTL" --no-reload -q disable ModemManager.service ||:
	fi
fi
Back to Top