chiark / gitweb /
Automatically rescan when a filesystem is mounted or unmounted.
[disorder] / debian / config.disorder-server
... / ...
CommitLineData
1#!/bin/sh
2#
3# Copyright (C) 2004-2008 Richard Kettlewell
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
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#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18
19set -e
20
21. /usr/share/debconf/confmodule
22
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
31db_input high disorder/roots || true
32db_input high disorder/encoding || true
33db_input high disorder/port || true
34db_input medium disorder/scratches || true
35db_input high disorder/mail_sender || true
36db_input high disorder/interface || true
37db_go || true
38
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
46fi