#!/bin/sh
if [ "x$D" != "x" ]; then
	install -d $D/etc/rcS.d
	# this happens at S98 where our good 'ole packages script used to run
	echo "#!/bin/sh
opkg-cl configure
rm -f //etc/rcS.d/S98run-postinsts
" > $D/etc/rcS.d/S98run-postinsts
	chmod 0755 $D/etc/rcS.d/S98run-postinsts
fi

update-alternatives --install /usr/bin/opkg opkg /usr/bin/opkg-cl 100
