#!/bin/csh
# /home/jhs/bin/.csh/telno_dslx
# xterm -geometry 20x5+120-0 -e telno_dsl &
# explicit public path to allow call from mk.
# Purpose: ISDN Opens a little window that shows DSL modem PPP or ppp if link up or down, calls telno_dsl
# See Also:
#  ~/.procmailrc_private_router_logs
#  ~/public_html/src/bsd/jhs/bin/public/phone/index.lmth
#  vi -c/Purpose:		\
#   ~/bin/.csh/telno_dsl	\
#   ~/bin/.csh/telno_dslx	\
#   ~/bin/.sh/telno		\
#   ~/bin/.sh/telno_2		\
#   ~/bin/.sh/telno_expt	\
#   ~/bin/.sh/telno_router	\
#   ~/bin/.sh/telno_x

switch (`hostname -s`)
	case park:
	case mart:
		echo "$0 : Error: Run this on an internal host, not on a gate,"
		# Do note remove space above between 0 : else if run on gate it complains:
		#	Bad : modifier in $ ( ).
		echo "(as gates can not read ~/.DOTS/.passwd/js.berklix.ne/pppctl )."
		exit 1
		breaksw
	default:
		xterm -bg `host2colour gate` -geometry 20x5+290-0	\
			-T DSL -e /home/jhs/public_html/bin/.csh/telno_dsl &
		breaksw
	endsw

# Message for mk:
# Not necessary as /etc/csh.login calls xauth.sh
# cat << EOF
# If you see:
# 	Xlib: connection to "lapa:0.0" refused by server
# 	Xlib: No protocol specified
# 	xterm Xt error: Can't open display: lapa:0
# Then first run xauth.sh (on local screen host), then run telno_dslx again.
# EOF
