[PC-BSD Commits] r15603 - pcbsd/current/src-qt4/pc-firstbootgui

svn at pcbsd.org svn at pcbsd.org
Mon Feb 27 09:57:41 PST 2012


Author: kris
Date: 2012-02-27 17:57:41 +0000 (Mon, 27 Feb 2012)
New Revision: 15603

Modified:
   pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
Log:

Fix setting the time-zone on firstbootgui, and make sure network is restarted
after selecting a wifi access point



Modified: pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp	2012-02-27 17:43:48 UTC (rev 15602)
+++ pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp	2012-02-27 17:57:41 UTC (rev 15603)
@@ -329,6 +329,9 @@
   // Run the wifiQuickConnect function
   NetworkInterface::wifiQuickConnect(SSID,key,"wlan0");
  
+  // In a few moments restart the network
+  system("(sleep 10; /etc/rc.d/netif restart)&");
+ 
   // Move to finish screen
   installStackWidget->setCurrentIndex(5);
 
@@ -352,6 +355,12 @@
     system("/usr/local/share/pcbsd/scripts/set-lang.sh " + lang.toLatin1());
   }
 
+  // Set the timezone
+  QString tz = comboBoxTimezone->currentText();
+  if ( tz.indexOf(":") != -1 )
+   tz = tz.section(":", 0, 0);
+  system("cp /usr/share/zoneinfo/" + tz.toLatin1() + " /etc/localtime");
+
   // Set the root PW
   QTemporaryFile rfile("/tmp/.XXXXXXXX");
   if ( rfile.open() ) {



More information about the Commits mailing list