Package: ntp-server
Version: 1:4.2.0a+stable-8.1
Severity: normal
Tags: patch

I use ifrename to change the name of my interface.  This breaks the
if-up.d/ntp-server script.  

The patch below causes the script to work when any inet interface is
brought up.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15gam3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)

Versions of packages ntp-server depends on:
ii  ntp              1:4.2.0a+stable-2sarge1 Network Time Protocol: network uti
ii  ntp-simple       1:4.2.0a+stable-8.1     Network Time Protocol: daemon for 

ntp-server recommends no packages.

-- no debconf information

--- /etc/network/if-up.d/ntp-server.orig        2006-03-10 07:25:18.000000000 
-0500
+++ /etc/network/if-up.d/ntp-server     2006-03-10 07:25:36.000000000 -0500
@@ -3,8 +3,8 @@
 # remove (or comment out) the next line if your network addresses change
 exit 0
 
-case $IFACE in
-       eth*)
+case $ADDRFAM in
+       inet)
                /etc/init.d/ntp-server restart
                ;;
 esac
--- ntp-server.orig     2006-03-10 07:25:18.000000000 -0500
+++ ntp-server  2006-03-10 07:25:36.000000000 -0500
@@ -3,8 +3,8 @@
 # remove (or comment out) the next line if your network addresses change
 exit 0
 
-case $IFACE in
-       eth*)
+case $ADDRFAM in
+       inet)
                /etc/init.d/ntp-server restart
                ;;
 esac

Reply via email to