summaryrefslogtreecommitdiffstats
path: root/core/modules/xorg/data/etc/X11/Xreset
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/xorg/data/etc/X11/Xreset')
-rwxr-xr-xcore/modules/xorg/data/etc/X11/Xreset25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/modules/xorg/data/etc/X11/Xreset b/core/modules/xorg/data/etc/X11/Xreset
new file mode 100755
index 00000000..3d175a5b
--- /dev/null
+++ b/core/modules/xorg/data/etc/X11/Xreset
@@ -0,0 +1,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
+