Revision 24976,
558 bytes
checked in by jdreed, 14 years ago
(diff) |
In xsession:
* Don't use dpkg-query because it slows logins down; instead ship actual
scripts in /usr/share and source them (Trac #778)
|
Line | |
---|
1 | if [ "$GDMSESSION" = "001debathena-ttymode" ]; then |
---|
2 | if [ "$DEBATHENA_HOME_TYPE" = "afs" ]; then |
---|
3 | QUOTAPCT=$(fs lq $HOME | tail -1 | awk '{print $4}' | sed 's/[^0-9]*//g') |
---|
4 | if [ $QUOTAPCT -ge 100 ]; then |
---|
5 | # Otherwise it blocks the session until it times out |
---|
6 | pkill pulseaudio |
---|
7 | fi |
---|
8 | fi |
---|
9 | if zenity --question --text="This will launch an xterm which will emulate a tty-mode login session. You can end your session by typing 'logout'.\nContinue?"; then |
---|
10 | xsetroot -solid grey |
---|
11 | xterm -ls -geometry 80x24+280+220 -display :0.0 |
---|
12 | fi |
---|
13 | exit 0 |
---|
14 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.