source: src-qt4/pc-xgui/resources/scripts/xinit-autodetect @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 12 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100755
File size: 601 bytes
Line 
1#!/bin/sh
2
3# Set all our path variables
4PATH="/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin:/usr/local/sbin"
5export PATH
6
7if [ -e "/root/.xprofile" ]
8then
9. /root/.xprofile
10fi
11
12# Setting a language
13if [ -e "/etc/pcbsd-lang" ] ; then
14   LANG=`cat /etc/pcbsd-lang`
15   export LANG
16fi
17 
18touch ${XGUITMP}/.xstartupsuccess
19/usr/local/bin/startfluxbox &
20PID=$!
21/usr/local/bin/pc-xgui -firstprompt
22if [ "$?" = "0" ] ; then
23  echo "Canceled" > ${XGUITMP}/.canceled
24  kill -9 ${PID}
25  exit 0
26fi
27/usr/local/bin/pc-xgui
28if [ "$?" = "1" ] ; then
29 echo "Canceled" > ${XGUITMP}/.canceled
30fi
31kill -9 ${PID}
Note: See TracBrowser for help on using the repository browser.