summary refs log tree commit diff
path: root/debian/dash.config
blob: e2ec96f874f6b7308d37b445a473e2a7c45551b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#
# debconf script for the Debian GNU/Linux ash package
#
# $Id$

set -e

. /usr/share/debconf/confmodule

db_version 2.0

if [ "$1" = configure ] && [ -z "$2" ]; then
	set +e
	db_fget ash/sh seen
	err=$?
	set -e

	case $err in
	0)
		if [ "$RET" = true ]; then
			db_fset dash/sh seen true
			db_get ash/sh
			db_set dash/sh "$RET"
			exit
		fi
		;;
	10)
		# ash/sh does not exist
		;;
	*)
		echo "db_fget exited with $err" >&2
		exit $err
		;;
	esac
fi

db_input low dash/sh || true
db_go