#!/bin/sh
if [ -z "$D" -a -f "/etc/init.d/systemd-udevd" -a -z "`systemctl is-enabled systemd-udevd 2>/dev/null`" ]; then
	/etc/init.d/systemd-udevd stop
fi
if type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-f -r $D"
	else
		OPT="-f"
	fi
	update-rc.d $OPT systemd-udevd remove
fi
