aboutsummaryrefslogtreecommitdiff
path: root/bin/awd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/awd')
-rwxr-xr-xbin/awd3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/awd b/bin/awd
index 584b1051..eed97fe1 100755
--- a/bin/awd
+++ b/bin/awd
@@ -14,7 +14,8 @@ case $# in
sys=$1
;;
0)
- sys=`hostname -s`
+ # hostname -s sets the hostname to "-s" on Solaris
+ sys=`hostname |sed 's/\..*//'`
;;
*)
usage