aboutsummaryrefslogtreecommitdiff
path: root/bin/awd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/awd')
-rwxr-xr-xbin/awd2
1 files changed, 1 insertions, 1 deletions
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