Fix solaris fqdn

This commit is contained in:
matt 2022-09-12 19:50:58 +00:00
parent 4e7724ecf8
commit 078af21630

View file

@ -1385,8 +1385,13 @@ get_model() {
get_title() {
user=${USER:-$(id -un || printf %s "${HOME/*\/}")}
case $title_fqdn in
on) hostname=$(hostname -f) ;;
case $os-$title_fqdn in
illumos-on|Solaris-on)
hostname=$(hostname)
domainname=$(domainname)
[[ -n "$domainname" ]] && hostname+=".$domainname"
;;
*-on) hostname=$(hostname -f) ;;
*) hostname=${HOSTNAME:-$(hostname)} ;;
esac