awd: use $sysname

R=rsc
http://codereview.appspot.com/2458041
This commit is contained in:
Russ Cox 2010-10-12 10:14:27 -04:00
parent bb72982b79
commit 63097b491d

View file

@ -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