From 63097b491dc7b5dc50d76b5720d20e9450fbe9b8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 12 Oct 2010 10:14:27 -0400 Subject: awd: use $sysname R=rsc http://codereview.appspot.com/2458041 --- bin/awd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/awd') 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 -- cgit v1.2.3