summaryrefslogtreecommitdiffstats
path: root/debian/kexec-tools.config
blob: 4ccee75f22e3cf5eb147fdaba02a1972768e95c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e
CONFFILE=/etc/default/kexec

# Source debconf library.
. /usr/share/debconf/confmodule
 
CONFIG_MODE=""

if test -e "$CONFFILE"; then
	. "$CONFFILE"

	# Guard against admin writing silly things into the
	# config file...
	if test "$USE_GRUB_CONFIG" != "true" ; then 
		db_set kexec-tools/use_grub_config "false"
	else
		db_set kexec-tools/use_grub_config "true"
	fi
fi

# Setup and select the configuration mode
db_input medium kexec-tools/use_grub_config || true
db_go