diff --git a/bin/awd b/bin/awd index eed97fe1..e2c86ef7 100755 --- a/bin/awd +++ b/bin/awd @@ -15,7 +15,7 @@ case $# in ;; 0) # hostname -s sets the hostname to "-s" on Solaris - sys=`hostname |sed 's/\..*//'` + sys=${sysname:-$(hostname |sed 's/\..*//')} ;; *) usage