tags 522780 +patch
thanks

Hi,

here's a correct patch to fix it properly.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baum...@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/
diff -Naurp tftp-hpa.orig/debian/changelog tftp-hpa/debian/changelog
--- tftp-hpa.orig/debian/changelog	2009-04-26 08:31:59.000000000 +0000
+++ tftp-hpa/debian/changelog	2009-04-26 08:36:51.000000000 +0000
@@ -1,3 +1,9 @@
+tftp-hpa (0.49-1+unreleased1) UNRELEASED; urgency=low
+
+  * Conditionally calling update-inetd in tftpd-hpa.postinst (Closes: #522780).
+
+ -- Daniel Baumann <dan...@debian.org>  Sun, 26 Apr 2009 10:36:00 +0200
+
 tftp-hpa (0.49-1) unstable; urgency=low
 
   * New upstream release (IPv6 support and other goodies) (Closes: #513642)
diff -Naurp tftp-hpa.orig/debian/tftpd-hpa.postinst tftp-hpa/debian/tftpd-hpa.postinst
--- tftp-hpa.orig/debian/tftpd-hpa.postinst	2009-04-26 08:31:59.000000000 +0000
+++ tftp-hpa/debian/tftpd-hpa.postinst	2009-04-26 08:35:52.000000000 +0000
@@ -24,11 +24,14 @@ fi
 
 case "$1" in
     configure)
-	if [ ! -n "$2" -a "$USE_INETD" = "true" ]; then 
-	    update-inetd --group BOOT --add "tftp           dgram   udp     wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot"
-	fi
-	if [ "$USE_INETD" = "false" ]; then
-	    update-inetd --disable tftp
+	if [ -x "$(which update-inetd 2>/dev/null)" ]
+	then
+	    if [ ! -n "$2" -a "$USE_INETD" = "true" ]; then 
+	        update-inetd --group BOOT --add "tftp           dgram   udp     wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot"
+	    fi
+	    if [ "$USE_INETD" = "false" ]; then
+	        update-inetd --disable tftp
+	    fi
 	fi
 
 	# Remove shutdown and reboot links; this init script does not need them.

Reply via email to