source: trunk/debathena/debathena/xsession/debian/ @ 25370

Revision 25370, 1.3 KB checked in by jdreed, 13 years ago (diff)
In xsession: * Don't tell private workstation owners to contact hotline (Trac: #998)
1youlose() {
2    notify=""
3    [ "$(machtype -L)" != "debathena-cluster" ] && notify="your system administrator"
4    zenity --warning --text="Your AFS home directory appears to be unavailable, and this login session cannot continue.\n\nThis could be due to an AFS outage, a network problem, or an issue with this specific workstation.  We recommend you try another workstation.\n\nIf the problem appears to only be on this workstation, please notify $notify and mention this machine's hostname ($(hostname -f)).  If the problem persists on multiple workstations, please contact the IS&T Helpdesk ( or x3-1101)."
5    exit 0
7youmightlose() {
8    if ! zenity --question --text="Your home directory type could not be determined.  This might indicate problems with the AFS servers, or you might have an error in your AFS permissions.\n\nIf you know what you're doing, it's possible that this error is benign and you can continue.  However, it's more than likely that this login session will fail and you'll need to reboot the workstation to log out.  With that in mind, would you like to continue?"; then
9        exit 0
10    fi
13    missing)
14        youlose
15        ;;
16    unknown)
17        youmightlose
18        ;;
19    afs)
20        [ -d "$HOME" ] || youlose
21        ;;
Note: See TracBrowser for help on using the repository browser.