summaryrefslogtreecommitdiffstats
path: root/source/x/x11-skel/scripts/setup.xwmconfig
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11-skel/scripts/setup.xwmconfig')
-rw-r--r--source/x/x11-skel/scripts/setup.xwmconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/x/x11-skel/scripts/setup.xwmconfig b/source/x/x11-skel/scripts/setup.xwmconfig
new file mode 100644
index 000000000..3ca88b202
--- /dev/null
+++ b/source/x/x11-skel/scripts/setup.xwmconfig
@@ -0,0 +1,15 @@
+#!/bin/sh
+#BLURB="Choose a default window manager for X"
+TMP=/var/log/setup/tmp
+if [ -r $TMP/SeTT_PX ]; then
+ T_PX="`cat $TMP/SeTT_PX`"
+elif [ ! "$1" = "" ]; then
+ T_PX=$1
+else
+ T_PX=/
+fi
+if [ "$COLOR" = "on" -o -r $TMP/SeTcolor -o "$T_PX" = "/" ]; then # use menus
+ if [ -d $T_PX/etc/X11/xinit ]; then
+ chroot $T_PX /bin/bash /usr/bin/xwmconfig
+ fi
+fi