From 5ca0a08f9f27391370b291df28b3de71db3bb175 Mon Sep 17 00:00:00 2001 From: benmeyer Date: Tue, 29 Oct 2002 15:59:44 +0000 Subject: Added changedns --- (limited to 'noncore/net/networksetup/interfaces/interfacesetupimp.cpp') diff --git a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp index e717d6f..97c05cc 100644 --- a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp +++ b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp @@ -14,7 +14,7 @@ #include -#define DNSSCRIPT "interfacednsscript" +#define DNSSCRIPT "changedns" /** * Constuctor. Set up the connection and load the first profile. @@ -76,8 +76,8 @@ bool InterfaceSetupImp::saveSettings(){ interfaces->setInterfaceOption("netmask", subnetMaskEdit->text()); interfaces->setInterfaceOption("gateway", gatewayEdit->text()); QString dns = firstDNSLineEdit->text() + " " + secondDNSLineEdit->text(); - interfaces->setInterfaceOption("up "DNSSCRIPT" add ", dns); - interfaces->setInterfaceOption("down "DNSSCRIPT" remove ", dns); + interfaces->setInterfaceOption("up "DNSSCRIPT" -a ", dns); + interfaces->setInterfaceOption("down "DNSSCRIPT" -r ", dns); } // IP Information @@ -133,7 +133,7 @@ void InterfaceSetupImp::setProfile(const QString &profile){ // IP Information autoStart->setChecked(interfaces->isAuto(interface->getInterfaceName())); - QString dns = interfaces->getInterfaceOption("up interfacednsscript add", error); + QString dns = interfaces->getInterfaceOption("up interfacednsscript -a", error); if(dns.contains(" ")){ firstDNSLineEdit->setText(dns.mid(0, dns.find(" "))); secondDNSLineEdit->setText(dns.mid(dns.find(" ")+1, dns.length())); -- cgit v0.9.0.2