Comment 12 for bug 2064926

Revision history for this message
Benjamin Drung (bdrung) wrote :

It's a bug in /usr/lib/dhcpcd/dhcpcd-hooks/30-hostname when executed with "set -e" that nobody has noticed/reported in 1.5 years.

If I understand correctly, need_hostname returns 0 in case the hostname is already set to the correct name. It return 1 if the hostname needs to be set. "need_hostname || return" returns set_hostname before setting the hostname in case need_hostname returns 1. I am confused.