Package: tftp-hpa
Severity: normal
The attached diff allow you to don't create stop symlinks for runlevels
0 and 6 as Ubuntu do [1].
[1]:
https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-June/000430.html
-- System Information:
Debian Release: lenny/sid
APT prefers intrepid-updates
APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500,
'intrepid-proposed'), (500, 'intrepid-backports'), (500, 'intrepid')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-19-generic (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -u tftp-hpa-0.48/debian/tftpd-hpa.postinst
tftp-hpa-0.48/debian/tftpd-hpa.postinst
--- tftp-hpa-0.48/debian/tftpd-hpa.postinst
+++ tftp-hpa-0.48/debian/tftpd-hpa.postinst
@@ -30,6 +30,11 @@
if [ "$USE_INETD" = "false" ]; then
update-inetd --disable tftp
fi
+
+ # Remove shutdown and reboot links; this init script does not need them.
+ if dpkg --compare-versions "$2" lt "0.42-1ubuntu2"; then
+ rm -f /etc/rc0.d/K20tftpd-hpa /etc/rc6.d/K20tftpd-hpa
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff -u tftp-hpa-0.48/debian/rules tftp-hpa-0.48/debian/rules
--- tftp-hpa-0.48/debian/rules
+++ tftp-hpa-0.48/debian/rules
@@ -56,7 +56,7 @@
dh_installdebconf -a
dh_installdocs -a
# dh_installlogrotate -a
- dh_installinit -a
+ dh_installinit -a -- start 20 2 3 4 5 . stop 20 1 .
dh_installchangelogs CHANGES -a
dh_strip -a
dh_link -a
diff -u tftp-hpa-0.48/debian/tftpd-hpa.init tftp-hpa-0.48/debian/tftpd-hpa.init
--- tftp-hpa-0.48/debian/tftpd-hpa.init
+++ tftp-hpa-0.48/debian/tftpd-hpa.init
@@ -8,7 +8,7 @@
# Required-Start: $local_fs $remote_fs $syslog $network
# Required-Stop: $local_fs $remote_fs $syslog $network
# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Default-Stop: 1
# Short-Description: HPA's tftp client
# Description: tftp server to allow booting clients which support
# the PXE protocol.