]> andersk Git - moira.git/blame - clients/userreg/register
sgi port, including migration to arch/@sys/bin paths
[moira.git] / clients / userreg / register
CommitLineData
7e765181 1#!/bin/csh -f
3afc6564 2
3set machtype=`machtype`
4
5if ( (${machtype}x != sun4x) && (${machtype}x != sgix) ) then
83e0c120 6 stty dec
7endif
8
3afc6564 9if ( ${machtype}x != "sgix" ) then
10 reset
11endif
12
83e0c120 13setenv SHELL csh
14
15if ( ${?TERM} == 0 ) then
16 setenv TERM network
17endif
18
19if ( ( ${TERM}x == networkx ) || ( ${TERM}x == switchx ) ) then
20 set noglob; eval `tset -s -I -Q ?vt100` || unset noglob
21else
22 set noglob; eval `tset -s -I -Q` || unset noglob
23endif
24
7e765181 25while (1)
83e0c120 26 clear
27 if ( $status ) then
28 echo "Unknown (or not powerful enough) terminal type."
29 set noglob; eval `tset -s -I -Q ?vt100` || unset noglob
30 else
31 break
32 endif
33end
34
35cd /mit/register
36
37while (1)
3afc6564 38 /mit/register/arch/@sys/bin/userreg
39 if ( ${machtype}x != "sgix") then
40 reset
41 endif
7e765181 42 echo -n "Do you want to register another user? "
43 set answer = $<
44 if ("${answer}x" =~ [nN]*) exit 0
45end
This page took 0.08361 seconds and 5 git commands to generate.