#! /usr/bin/make -f
%:
	dh $@

DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)

# The default console configuration shipped by sysvinit is enough
# on s390(x). Hence the console setup script should not be installed
# there but everywhere else.
override_dh_install:
	dh_install
	@if [ "$(DEB_BUILD_ARCH)" = "s390" -o "$(DEB_BUILD_ARCH)" = "s390x" ]; then \
		rm -v debian/finish-install/usr/lib/finish-install.d/90console; \
	fi
