]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Don't use "hostname -s"
[ConfigScripts.git] / sys / profile
index f1ffada04e1ef518a4708ad24655342ffd09cdbb..c18aa574d5d7aa540575e881f07af9c4227d421f 100644 (file)
@@ -50,7 +50,7 @@ done
 [ -d ~/sbin ] && PATH=~/sbin:"${PATH}"
 
 # Setup MANPATH, if manpath(1) isn't available
-if [ ! "$(type manpath)" ]; then
+if [ ! "$(type manpath 2>/dev/null)" ]; then
        [ -z "$MANPATH" ] \
                && MANPATH="/usr/local/share/man:/usr/share/man:/usr/man"
        path=""
@@ -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