export EDITOR=/usr/bin/emacs
export TZ=CET
-if which domainname 2>&1 >/dev/null; then
- DOMAIN=`domainname`
-elif which hostname 2>&1 >/dev/null; then
- DOMAIN=`hostname -d`
-fi
+case `uname -s` in
+ *BSD)
+ HOSTNAME=`hostname`
+ DOMAINNAME=`hostname | cut -d. -f 2-`
+ ;;
+ Linux)
+ HOSTNAME=`hostname -f`
+ DOMAINNAME=`hostmame -f | cut -d. -f 2-`
+ ;;
+esac
LS_OPTIONS="$LS_OPTIONS -B"
export PILOTPORT=/dev/tts/0
alias mirror="wget --mirror --no-parent --convert-links -P $HOME/data/www-mirror "
-case "$DOMAIN" in
- pvv)
+case "$DOMAINNAME" in
+ pvv*)
# Sigh, no locale here, at least not uniformly.
;;
*)