	# This is so you can make busybox commit suicide - removing busybox with no other packages
	# providing its files, this will make update-alternatives work, but the update-rc.d part
	# for syslog, httpd and/or udhcpd will fail if there is no other package providing sh
	tmpdir=`mktemp -d /tmp/busyboxrm-XXXXXX`
	cp -a /bin/busybox $tmpdir/
	ln -s $tmpdir/busybox $tmpdir/[
	ln -s $tmpdir/busybox $tmpdir/test
	ln -s $tmpdir/busybox $tmpdir/head
	ln -s $tmpdir/busybox $tmpdir/sh
	ln -s $tmpdir/busybox $tmpdir/basename
	ln -s $tmpdir/busybox $tmpdir/echo
	ln -s $tmpdir/busybox $tmpdir/mv
	ln -s $tmpdir/busybox $tmpdir/ln
	ln -s $tmpdir/busybox $tmpdir/dirname
	ln -s $tmpdir/busybox $tmpdir/rm
	ln -s $tmpdir/busybox $tmpdir/sed
	ln -s $tmpdir/busybox $tmpdir/sort
	export PATH=$PATH:$tmpdir
	while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; sh /usr/bin/update-alternatives --remove $bn $to; done </etc/busybox.links
if test "x$D" != "x"; then
	D="-r $D"
else
	/etc/init.d/syslog stop
fi
