source: trunk/debathena/debathena/xsession/debian/01debathena-quota @ 24859

Revision 24859, 559 bytes checked in by jdreed, 14 years ago (diff)
In xsession: * Make the 'xterm' login session actually useful * Warn about quota early in the session so users know why logins fail.
[24859]1if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" = "install ok installed" ] && [ "$DEBATHENA_HOME_TYPE" = "afs" ]; then
2    QUOTAPCT=$(fs lq $HOME | tail -1 | awk '{print $4}' | sed 's/[^0-9]*//g')
3    if [ $QUOTAPCT -ge 100 ]; then
4        message "You have exceeded your AFS quota.  This login session will likely fail.\nTry using the 'xterm' login session to get a tty-mode login session, and then remove or compress some files to get below your quota.\nYou may also request a quota increase from User Accounts by calling x3-1325."
5    fi
Note: See TracBrowser for help on using the repository browser.