1
diff -Nru ntop-3.2.old/debian/config ntop-3.2/debian/config
2
--- ntop-3.2.old/debian/config 2006-03-07 17:29:03.000000000 +0100
3
+++ ntop-3.2/debian/config 2006-03-07 18:14:02.000000000 +0100
5
# Source debconf library
6
. /usr/share/debconf/confmodule
9
+# Check the interface status, abort with error if a configured one is not
11
+ [ -z "$INTERFACES" ] && return 0
12
+ { echo $INTERFACES | awk -F , '{ for(i=1;i<=NF;i++) print $i }' |
13
+ while read iface ; do
14
+ if ! ifconfig "$iface" | grep -w UP >/dev/null; then
24
if [ -e /etc/ntop/init.cfg ] && [ ! -e /var/lib/ntop/init.cfg ]; then
25
cp -a /etc/ntop/init.cfg /etc/ntop/init.cfg.dpkg-old || true
26
mv /etc/ntop/init.cfg /var/lib/ntop/init.cfg || true
28
db_set ntop/interfaces $INTERFACES
31
-db_input medium ntop/interfaces || true
32
+# Interface default in case /var/lib/ntop/init.cfg does not exist
33
+[ -z "$INTERFACES" ] && INTERFACES=eth0
34
+# Depending on whether the default interface is up or down we set the
38
+ db_input medium ntop/interfaces || true
40
+ db_input high ntop/interfaces || true
43
db_get ntop/interfaces