Refresh patch 03_cflags.patch; drop patch 04_base64.patch, the base64
[debian/iodine.git] / debian / config
1 #!/bin/sh
2
3 set -e
4
5 . /usr/share/debconf/confmodule
6
7 if [ -s /etc/default/iodine ] ; then
8         . /etc/default/iodine
9         if [ -n "$START_IODINED" ] ; then
10                 db_set iodine/start_daemon "$START_IODINED"
11         fi
12         if [ -n "$IODINED_ARGS" ] ; then
13                 db_set iodine/daemon_options "$IODINED_ARGS"
14         fi
15         if [ -n "$IODINED_PASSWORD" ] ; then
16                 db_set iodine/daemon_password "$IODINED_PASSWORD"
17         fi
18 fi
19
20 db_input medium iodine/start_daemon || true
21 db_go
22
23 db_get iodine/start_daemon
24 START_DAEMON=$RET
25
26 if [ "x$START_DAEMON" = "xtrue" ] ; then
27         db_input medium iodine/daemon_options || true
28         db_input medium iodine/daemon_password || true
29         db_go
30 fi