Commit | Line | Data |
---|---|---|
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 | ||
19 | set -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. | |
25 | db_get disorder/encoding || true | |
26 | if test "x$RET" = x; then | |
27 | eval `locale -k charmap` | |
28 | db_set disorder/encoding "$charmap" | |
29 | fi | |
30 | ||
460b9539 | 31 | db_input high disorder/roots || true |
32 | db_input high disorder/encoding || true | |
6f3acea9 | 33 | db_input high disorder/port || true |
460b9539 | 34 | db_input medium disorder/scratches || true |
f2c185d6 | 35 | db_input high disorder/mail_sender || true |
6094c7e4 | 36 | db_input high disorder/interface || true |
460b9539 | 37 | db_go || true |
38 | ||
6094c7e4 RK |
39 | db_get disorder/interface || true |
40 | interface="$RET" | |
41 | ||
42 | if 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 | 46 | fi |