chiark / gitweb /
Hands-off reading for FLAC.
[disorder] / debian / config.disorder-server
CommitLineData
460b9539 1#!/bin/sh
2#
1c934d2a 3# Copyright (C) 2004-2008 Richard Kettlewell
460b9539 4#
e7eb3a27 5# This program is free software: you can redistribute it and/or modify
460b9539 6# it under the terms of the GNU General Public License as published by
e7eb3a27 7# the Free Software Foundation, either version 3 of the License, or
460b9539 8# (at your option) any later version.
9#
e7eb3a27
RK
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
460b9539 15# You should have received a copy of the GNU General Public License
e7eb3a27 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
460b9539 17#
18
19set -e
20
21. /usr/share/debconf/confmodule
22
23578599
RK
23# If we don't have any preconception about the local character encoding then
24# try to use the system one.
25db_get disorder/encoding || true
26if test "x$RET" = x; then
27 eval `locale -k charmap`
28 db_set disorder/encoding "$charmap"
29fi
30
460b9539 31db_input high disorder/roots || true
32db_input high disorder/encoding || true
6f3acea9 33db_input high disorder/port || true
460b9539 34db_input medium disorder/scratches || true
f2c185d6 35db_input high disorder/mail_sender || true
6094c7e4 36db_input high disorder/interface || true
460b9539 37db_go || true
38
6094c7e4
RK
39db_get disorder/interface || true
40interface="$RET"
41
42if test "x$interface" = xnetwork; then
43 db_input high disorder/mcast_address || true
44 db_input high disorder/mcast_port || true
45 db_go || true
6094c7e4 46fi