summaryrefslogtreecommitdiffstats
path: root/core/modules/xorg/data/etc/X11/Xreset
blob: 3d175a5b909042530ffd50442e63213ff83cf674 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/ash
#
# /etc/X11/Xreset
#
# Xreset - run as root after session exits
#

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin"

set -e

PROGNAME=Xreset
SYSSESSIONDIR=/etc/X11/Xreset.d

if [ ! -d "$SYSSESSIONDIR" ]; then
  # Nothing to do, exiting
  exit 0
fi

for SESSIONFILE in $SYSSESSIONDIR/*; do
	. "$SESSIONFILE" || slxlog "xreset" "Xreset: Could not source $SESSIONFILE." "$SESSIONFILE" 
done

exit 0