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

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 6ffb65b was 6f96fdf, checked in by Kris Moore <kris@…>, 18 months ago

Add ability to start first boot wizard immediately after the X gui is run

This means we don't have to wait for X to shutdown, then re-launch and may fix some
bugs with X shutdowns causing a crash

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