[PC-BSD Commits] r15464 - pcbsd/current/system-overlay/usr/local/etc/rc.d

svn at pcbsd.org svn at pcbsd.org
Fri Feb 17 07:32:50 PST 2012


Author: kris
Date: 2012-02-17 15:32:50 +0000 (Fri, 17 Feb 2012)
New Revision: 15464

Modified:
   pcbsd/current/system-overlay/usr/local/etc/rc.d/gdm
Log:

Check if we need to run a first boot setup gui



Modified: pcbsd/current/system-overlay/usr/local/etc/rc.d/gdm
===================================================================
--- pcbsd/current/system-overlay/usr/local/etc/rc.d/gdm	2012-02-17 15:30:45 UTC (rev 15463)
+++ pcbsd/current/system-overlay/usr/local/etc/rc.d/gdm	2012-02-17 15:32:50 UTC (rev 15464)
@@ -24,6 +24,11 @@
 	rm -f /var/.runxsetup
 }
 
+setup_firstboot() {
+	/usr/local/bin/pc-firstgui
+        rm /var/.pcbsd-firstgui
+}
+
 setup_xvesa() {
 	echo "Using failsafe VESA 1024x768 mode..." >/dev/console
 	mv /etc/X11/xorg.conf /etc/X11/xorg.conf.preVesa.backup
@@ -95,6 +100,10 @@
     	setup_xorg
     fi
 
+    # Check if we need to do a first boot setup
+    if [ -e "/var/.pcbsd-firstgui" ]; then
+       setup_firstboot
+    fi
 
     LANG=${gdm_lang} ${command} ${gdm_flags} ) &
 }



More information about the Commits mailing list