#!/bin/csh # ~/private/html/bin/.csh/dsl by jhs@ set DOMAIN1 = `cd /site/domain/this;pwd` set DOMAIN2 = `basename $DOMAIN1` # correct anything maybe set by a prior # domain/js.berklix.net/etc/isdn/direction # echo "Reminder: xs rsh gate" # echo " ln -s -f ../site/domain/this/etc/resolv.conf.gateway /etc/resolv.conf" switch (`hostname -s`) case park: case mart: echo "Run this on an internal host, not on a gate." # Gates can not read ~/.DOTS/.passwd/$DOMAIN2/pppctl` # sleep 5 # Allow time for human reading, because if dslx # called this dsl, the xterm would otherwise # just flicker & dissapear immediately. exit 1 breaksw default: pppctl -p `cat ~/.DOTS/.passwd/$DOMAIN2/pppctl` \ dsl:`cat ~jhs/.DOTS/.ports/$DOMAIN2/pppctl` # dsl above is a cname supplied from my named breaksw endsw unset DOMAIN1 DOMAIN2