aboutsummaryrefslogtreecommitdiff
path: root/bin/awd
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-27 20:18:28 +0000
committerrsc <devnull@localhost>2005-07-27 20:18:28 +0000
commit3fc9d8848430fe72937b268f930896b5ec6f7513 (patch)
treea553f0fd6c6a68f7511dcd650e97de9042e6ed7d /bin/awd
parent28169890e2b33cbf0d99be5a5db74b1f6713ddf8 (diff)
downloadplan9port-3fc9d8848430fe72937b268f930896b5ec6f7513.tar.gz
plan9port-3fc9d8848430fe72937b268f930896b5ec6f7513.tar.bz2
plan9port-3fc9d8848430fe72937b268f930896b5ec6f7513.zip
better awd for sunos
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