summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
diff options
context:
space:
mode:
authorJames Meyer <jams@linhes.org>2010-12-04 23:44:45 (GMT)
committerJames Meyer <jams@linhes.org>2010-12-04 23:44:51 (GMT)
commitf51fb708846d13222bd97b3f760eb3be902c0be0 (patch)
treead25ff81828f12cb7da86384863e163cb4e001f2 /build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
parent4384efe238cdfeac86fae0d8e1097a409350f8c6 (diff)
downloadlinhes_dev-f51fb708846d13222bd97b3f760eb3be902c0be0.zip
remove old versions of larch 6 and 7
Diffstat (limited to 'build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom')
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom22
1 files changed, 0 insertions, 22 deletions
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
deleted file mode 100644
index 8e3ec5e..0000000
--- a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
+++ /dev/null
@@ -1,22 +0,0 @@
-if grep -v nox /proc/cmdline &>/dev/null && \
- [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
- if grep i810 /proc/cmdline &>/dev/null; then
- startx -- -config xorg.conf.i810
- else
- startx
- fi
-
- # Maybe there should be some code here to handle a failed startx?
-
- # The 'return' value is at /tmp/xlogout
- # If there is nothing there, switch user to 'newuser'
- # If there is also nothing there, login as root
- # - if already root, fall through to terminal
-
- if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
- logout
- elif [ ${UID} -ne 0 ]; then
- echo "root" >/tmp/newuser
- logout
- fi
-fi