[PC-BSD Commits] r6300 - pcbsd/trunk/SysInstaller

svn at pcbsd.org svn at pcbsd.org
Thu Feb 25 06:31:26 PST 2010


Author: kris
Date: 2010-02-25 06:31:26 -0800 (Thu, 25 Feb 2010)
New Revision: 6300

Modified:
   pcbsd/trunk/SysInstaller/sysinstaller.cpp
Log:

Fixed bug reported by atrox, don't allow selecting "bash" as a default shell on FreeBSD install, doesn't
exist in FreeBSD base :)



Modified: pcbsd/trunk/SysInstaller/sysinstaller.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/sysinstaller.cpp	2010-02-24 23:56:46 UTC (rev 6299)
+++ pcbsd/trunk/SysInstaller/sysinstaller.cpp	2010-02-25 14:31:26 UTC (rev 6300)
@@ -384,6 +384,27 @@
 void SysInstaller::slotChangedOS()
 {
 
+  if ( radioInstallFreeBSD->isChecked() )
+  {
+    // Installing FreeBSD
+
+    // Populate our shell selection
+    comboShell->clear();
+    comboShell->addItem("/bin/csh");
+    comboShell->addItem("/bin/tcsh");
+    comboShell->addItem("/bin/sh");
+
+  } else {
+    // Installing PC-BSD
+
+    // Populate our shell selection
+    comboShell->clear();
+    comboShell->addItem("/bin/csh");
+    comboShell->addItem("/bin/tcsh");
+    comboShell->addItem("/bin/sh");
+    comboShell->addItem("/usr/local/bin/bash");
+  }
+
 }
 
 void SysInstaller::slotChangedInstallType()



More information about the Commits mailing list