aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/20-hostname
blob: bf7eeeb3e4e88a016c147f908dd838ed2067ddd2 (plain) (blame)
1
2
3
4
5
6
#!/bin/sh

# Set the fully qualified hostname.
sysrc -v hostname="${BOXCONF_HOSTNAME}.${domain}"
hostname "${BOXCONF_HOSTNAME}.${domain}"
install_template -m 0644 /etc/hosts