Revision 25002,
540 bytes
checked in by jdreed, 14 years ago
(diff) |
In cluster-login-config:
* Ship our own logout command which will force a logout on cluster if
the user lacks tokens
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # A more ... insistent ... logout command for gnome-screensaver |
---|
4 | # |
---|
5 | |
---|
6 | PATH=/usr/bin:/bin:$PATH |
---|
7 | |
---|
8 | if [ "$(machtype -L)" != "debathena-cluster" ]; then |
---|
9 | gnome-session-save --force-logout |
---|
10 | exit 0 |
---|
11 | fi |
---|
12 | |
---|
13 | cell=athena.mit.edu |
---|
14 | afspath=$HOME |
---|
15 | if echo $HOME | grep -q ^/mit; then |
---|
16 | # Shouldn't happen with std dotfiles |
---|
17 | afspath=$(readlink $HOME) |
---|
18 | fi |
---|
19 | if echo $afspath | grep -q ^/afs; then |
---|
20 | cell=$(echo $afspath | cut -d/ -f 3) |
---|
21 | fi |
---|
22 | if tokens | fgrep -q $cell; then |
---|
23 | gnome-session-save --force-logout |
---|
24 | else |
---|
25 | pkill schroot |
---|
26 | fi |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.