#! /bin/sh -e
# Bring up everything that's needed to fetch a Kickstart file from the
# CD-ROM.

# without this, debconf clients will talk debconf protocol to syslog
. /usr/share/debconf/confmodule

if [ ! -x /var/lib/dpkg/info/cdrom-detect.postinst ]; then
	/lib/kickseed/kickseed-anna cdrom-detect
fi

if [ -x /var/lib/dpkg/info/cdrom-detect.postinst ]; then
	/lib/kickseed/kickseed-udpkg cdrom-detect
else
	logger -t kickseed "cdrom-detect cannot be installed"
	exit 1
fi

exit 0
