Akkadius / glass-isc-dhcp

Glass - ISC DHCP Server Interface
MIT License
696 stars 144 forks source link

getting host_name from /usr/bin/env hostname #20

Closed maechi closed 6 years ago

maechi commented 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

Akkadius commented 6 years ago

Thanks @maechi for this, honestly using the hostname binary may even be more universally friendly across distros