#!/bin/sh
# Arg: 1
# hostapd - preinst
#!/bin/sh
if [ -z "$D" -a -f "/etc/init.d/" ]; then
	/etc/init.d/ 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  remove
fi