All pastes #116414 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-08-05 07:31 UTC
rendered paste body
#       $NetBSD: profile,v 1.1 1997/06/21 06:07:39 mikel Exp $
#
# System-wide .profile file for sh(1).

trap "" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20

case `id -g` in
 50|100) touch -f $HOME ;;
esac

tty=`tty|cut -d/ -f3`
#export MYIP=`who|grep -w $tty|cut -d\( -f2|cut -d\) -f1`
export MYTTY=`tty`

stty status '^t'

PATH=/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/games:/usr/pkg/X11R6/bin:/usr/local/bin
EDITOR=/usr/pkg/bin/pico
NNTPSERVER=`cat /usr/pkg/etc/nntp/server`
MANPATH=/sys/share/man:/sys/pkg/man:/usr/pkg/X11R6/man
export PATH EDITOR NNTPSERVER MANPATH
HOST=`/usr/bin/uname -n`

if [ "$HOST" = "mx" ]
then case `whoami` in
     support|smj|eric|thxmoo|root) ;;
     *)
     echo
     echo "please use 'tty.freeshell.org' to connect to SDF."
     echo
     sleep 10
     kill -9 0 ;;
     esac
fi

if [ "$HOST" = "ol" ]
then
case `whoami` in
  support|smj|root|new|eric) ;;
  thxmoo) kill -9 0 ;;
    *) exec /usr/pkg/bin/maint ;;
esac
fi

if [ "$HOST" = "sverige" ]
then
case `id -G` in
      0*) ;;
   *600*) ;;
       *) echo
          echo "sverige is reserved for MetaARPA members only."
          echo "please use 'tty.freeshell.org' to connect to SDF."
          echo
          sleep 5
          kill -9 0 ;;
esac
fi
/usr/pkg/bin/dues -p
/usr/pkg/bin/notify -c

trap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20