[PC-BSD Commits] r705 - pcbsd/trunk/NetworkManager
svn at pcbsd.org
svn at pcbsd.org
Wed Sep 12 13:33:30 PDT 2007
Author: kris
Date: 2007-09-12 13:33:30 -0700 (Wed, 12 Sep 2007)
New Revision: 705
Modified:
pcbsd/trunk/NetworkManager/networkman.ui.h
Log:
Fixed the network manager to not just restart the network anymore, rather
set each new item properly
Modified: pcbsd/trunk/NetworkManager/networkman.ui.h
===================================================================
--- pcbsd/trunk/NetworkManager/networkman.ui.h 2007-09-12 19:27:11 UTC (rev 704)
+++ pcbsd/trunk/NetworkManager/networkman.ui.h 2007-09-12 20:33:30 UTC (rev 705)
@@ -637,16 +637,20 @@
void NetworkMan::restartNetwork()
{
+
+ //restartDialog= new restartPopup(this);
+ //restartDialog->init();
+ //restartDialog->exec();
+
//Set the hostname
runCommand("hostname " + lineHostname->text());
-
- restartDialog= new restartPopup(this);
- restartDialog->init();
- restartDialog->exec();
-
- if ( lineGateway->text() != "..." ) {
+
+ // Set the gateway device name
+ if ( lineGateway->text() != "..." ) {
+ runCommand("route delete default" );
runCommand("route add default " + lineGateway->text() );
- }
+ }
+
//runCommand("/etc/rc.d/routing restart &");
if ( checkPPPOE->isChecked() ) {
runCommand("/etc/rc.d/ppp restart &");
More information about the Commits
mailing list