Codebase list sysvinit / debian/2.88dsf-52 debian / sysvinit-core.config
debian/2.88dsf-52

Tree @debian/2.88dsf-52 (Download .tar.gz)

sysvinit-core.config @debian/2.88dsf-52raw · history · blame

#!/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 -q '/libexec/getty' /etc/inittab; 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