diff options
Diffstat (limited to 'debian/iperf3.config')
-rwxr-xr-x | debian/iperf3.config | 7 |
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 |