Closed maechi closed 6 years ago
FreeBSD does not have an /etc/hostname file, but provides a binary hostname for it. If we can't find an /etc/hostname file, we try to use /usr/bin/env hostname
/etc/hostname
hostname
/usr/bin/env hostname
Thanks @maechi for this, honestly using the hostname binary may even be more universally friendly across distros
FreeBSD does not have an
/etc/hostname
file, but provides a binaryhostname
for it. If we can't find an /etc/hostname file, we try to use/usr/bin/env hostname