Comment 21 for bug 1342580

Revision history for this message
Steve Langasek (vorlon) wrote : Re: tftpd-hpa doesn't start on boot

+ # Replace previous dual-stack syntax
+ # that fails to work if NIC is not available
+ # (LP: #1342580)
+ if [ "${TFTP_ADDRESS}" = "[::]:69" ]; then
+ TFTP_ADDRESS=":69"
        fi

Please include a version guard in this, so that if the user insists on setting the address to [::]:69, we aren't constantly rewriting it. Compare the block of code immediately above:

        # Move from IPv4-only to dual-stack
        if [ "${TFTP_ADDRESS}" = "0.0.0.0:69" ] && \
         dpkg --compare-versions $2 lt 5.2-7ubuntu3; then
[...]

The change is ok other than that, but a version check should be included as part of this SRU.

Rejecting the current upload; please reupload with the version check.