set -e
	# remove syslog
	if test "x$D" = "x"; then
		if test "$1" = "upgrade" -o "$1" = "remove"; then
			/etc/init.d/syslog stop || :
		fi
	fi
	update-alternatives --remove  klogd /usr/bin/busybox.nosuid
	update-alternatives --remove  syslogd /usr/bin/busybox.nosuid
if type systemctl >/dev/null 2>/dev/null; then
	if [ -z "$D" ] && systemctl >/dev/null 2>/dev/null; then
		if [ -n "busybox-syslog.service" ]; then
			systemctl stop busybox-syslog.service
			systemctl disable busybox-syslog.service
		fi

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