#!/bin/sh
. /usr/share/debconf/confmodule
template="$1"
min="$2"
db_info lowmem/info
db_title "Low memory"
db_subst "$template" MIN "$min"
db_input critical "$template" || true
db_go || true

for var in debian-installer/locale; do
	if ! db_get $var; then
		db_register debian-installer/dummy $var || true
	fi
done

db_set debian-installer/framebuffer false || true
db_set debian-installer/locale "C" || true
db_fset debian-installer/locale seen true

rm -f /usr/bin/bterm
rm -f /usr/lib/unifont.bgf
