Drop armel_ftbfs.patch, fixed upstream.
[debian/iodine.git] / debian / config
index c7f05444da9fbdd5ac31e064055e9273a15ceca5..73c692209193fd63d01f0df1a4512f1f5496d5f2 100644 (file)
@@ -1,30 +1,24 @@
 #!/bin/sh
 
+CONFIGFILE=/etc/default/iodine
 set -e
-
 . /usr/share/debconf/confmodule
 
 getvalue() {
        awk '/^'"$1"'=/ {sub("^'"$1"'=\"", ""); sub("\"$", ""); value=$0;} END {print value}' /etc/default/iodine
 }
 
-if [ -s /etc/default/iodine ] ; then
+if [ -s $CONFIGFILE ] ; then
        START_IODINED="$(getvalue START_IODINED)"
-       if [ -n "$START_IODINED" ] ; then
-               db_set iodine/start_daemon "$START_IODINED"
-       fi
+       db_set iodine/start_daemon    "$START_IODINED"
        IODINED_ARGS="$(getvalue IODINED_ARGS)"
-       if [ -n "$IODINED_ARGS" ] ; then
-               db_set iodine/daemon_options "$IODINED_ARGS"
-       fi
+       db_set iodine/daemon_options  "$IODINED_ARGS"
        IODINED_PASSWORD="$(getvalue IODINED_PASSWORD)"
-       if [ -n "$IODINED_PASSWORD" ] ; then
-               db_set iodine/daemon_password "$IODINED_PASSWORD"
-       fi
+       db_set iodine/daemon_password "$IODINED_PASSWORD"
 fi
 
 db_input medium iodine/start_daemon || true
-db_go
+db_go || true
 
 db_get iodine/start_daemon
 START_DAEMON=$RET
@@ -32,5 +26,5 @@ START_DAEMON=$RET
 if [ "x$START_DAEMON" = "xtrue" ] ; then
        db_input medium iodine/daemon_options || true
        db_input medium iodine/daemon_password || true
-       db_go
+       db_go || true
 fi