Revision 22900,
458 bytes
checked in by tabbott, 16 years ago
(diff) |
Remove zephyr code from renew in debathena-standard so that
renew doesn't give errors when behind a NAT.
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Global bashrc file for Debathena machines |
---|
3 | |
---|
4 | export HOSTTYPE="`/bin/machtype`" |
---|
5 | export ATHENA_SYS=`/bin/machtype -S` |
---|
6 | export ATHENA_SYS_COMPAT=`/bin/machtype -C` |
---|
7 | if [ -z "$ATHENA_SYS" ]; then |
---|
8 | export ATHENA_SYS=@sys |
---|
9 | fi |
---|
10 | |
---|
11 | renew () { |
---|
12 | principal=`klist -5 2>/dev/null | sed -n 's/^Default principal: // p'` |
---|
13 | kinit -54 "${principal:-${ATHENA_USER:-$USER}}" && aklog ; |
---|
14 | } |
---|
15 | |
---|
16 | add_flags= |
---|
17 | add () { eval "$( /bin/attach -Padd -b $add_flags "$@" )" ; } |
---|
Note: See
TracBrowser
for help on using the repository browser.