summaryrefslogtreecommitdiffstats
path: root/debian/iperf3.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/iperf3.config')
-rwxr-xr-xdebian/iperf3.config7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/iperf3.config b/debian/iperf3.config
index 17f62c2..3673940 100755
--- a/debian/iperf3.config
+++ b/debian/iperf3.config
@@ -35,8 +35,10 @@ else
db_set iperf3/start_daemon false
fi
-db_input high iperf3/start_daemon || true
-db_go
+if [ "$TERM" ]; then
+ db_input high iperf3/start_daemon || true
+ db_go || true
+fi
# fetch data from debconf if any
db_get iperf3/start_daemon
@@ -59,5 +61,6 @@ else
invoke-rc.d iperf3 stop || true
fi
fi
+db_stop || true
exit 0