#!/bin/sh
if true && [ -z "$D" -a -f "/etc/init.d/modload.sh" ]; then
	/etc/init.d/modload.sh stop || :
fi
if true && 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 modload.sh remove
fi
