]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Don't use "hostname -s"
authorAlexander Barton <alex@barton.de>
Sun, 27 Feb 2011 17:59:00 +0000 (18:59 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 27 Feb 2011 17:59:00 +0000 (18:59 +0100)
It is not supported on Apple A/UX.

sys/profile

index 0ce21cf32cea5650bf7ad6a6411591b8a04ddd12..c18aa574d5d7aa540575e881f07af9c4227d421f 100644 (file)
@@ -75,7 +75,7 @@ fi
 export UID USER
 
 # get my own hostname
-ME=`hostname -s`
+ME=`hostname 2>/dev/null`
 export ME
 
 # Move Xauthority file to local storage, so that sudo et all work