aboutsummaryrefslogtreecommitdiff
path: root/bin/awd
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-10-12 10:14:27 -0400
committerRuss Cox <rsc@swtch.com>2010-10-12 10:14:27 -0400
commit63097b491dc7b5dc50d76b5720d20e9450fbe9b8 (patch)
treefe999108bf9680f809701f30496c2a4ebfe2a0c2 /bin/awd
parentbb72982b79e09bb055930c2877ac7077b341cf84 (diff)
downloadplan9port-63097b491dc7b5dc50d76b5720d20e9450fbe9b8.tar.gz
plan9port-63097b491dc7b5dc50d76b5720d20e9450fbe9b8.tar.bz2
plan9port-63097b491dc7b5dc50d76b5720d20e9450fbe9b8.zip
awd: use $sysname
R=rsc http://codereview.appspot.com/2458041
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