#!/bin/sh
set -e
if type systemctl >/dev/null 2>/dev/null; then
	if [ -z "$D" ] && systemctl >/dev/null 2>/dev/null; then
		if [ -n "connman-wait-online.service" ]; then
			systemctl stop connman-wait-online.service
			systemctl disable connman-wait-online.service
		fi

		# same as above, --global flag is not supported for stop so do disable only
		[ -n "" ] && \
			systemctl --global disable 
	fi
fi
