~sbalneav/ltsp/xexit

« back to all changes in this revision

Viewing changes to EndXSession

  • Committer: Scott Balneaves
  • Date: 2010-05-05 19:53:13 UTC
  • Revision ID: sbalneav@3jane-20100505195313-t2d1r3kyvm5pybg1
Added example logout script

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
EXITSESSIONDIR=/etc/Xexit.d
 
4
 
 
5
SESSIONFILES=$(run-parts --list $EXITSESSIONDIR)
 
6
if [ -n "$SESSIONFILES" ]; then
 
7
  set +e
 
8
  for SESSIONFILE in $SESSIONFILES; do
 
9
    . $SESSIONFILE
 
10
  done
 
11
  set -e
 
12
fi