#!/bin/sh
# config script for sysvinit
#
# see: dh_installdeb(1)
set -e
. /usr/share/debconf/confmodule
# summary of how this script can be called:
# * <config> 'configure' <installed-version>
# * <config> 'reconfigure' <installed-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure|reconfigure)
if [ "$(uname)" = GNU ]; then
db_set sysvinit/hurd-fix-inittab "true"
if echo '3e3693078d18d4696c83a76531433cd4 /etc/inittab' \
| md5sum --status --check -; then
# The file is unmodified, update it silently.
:
elif [ $(fgrep -c -e '/libexec/getty' /etc/inittab) -gt 0 ] || \
[ $(grep -c '^c:' /etc/inittab) -eq 0 ]; then
db_input low sysvinit/hurd-fix-inittab || true
db_go
fi
fi
;;
*)
echo "config script called with unknown argument '$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0