summaryrefslogtreecommitdiffstats
path: root/debian/ttyd.config
blob: 974b9a1ee3592a9dec3c27a9c588afe212115a0e (plain)
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
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

CONFFILE="/etc/default/ttyd"

if [ -e "${CONFFILE}" ]
then
	. ${CONFFILE} || true

	db_set ttyd/interface "${INTERFACE}"
	db_set ttyd/port "${PORT}"
	db_set ttyd/check-origin "${CHECK_ORIGIN}"
	db_set ttyd/command "${COMMAND}"
fi

db_input low ttyd/interface || true
db_input low ttyd/port || true
db_input low ttyd/check-origin || true
db_input low ttyd/command || true
db_go

db_stop