Author: locilka Date: Fri Nov 2 15:35:21 2007 New Revision: 41747 URL: http://svn.opensuse.org/viewcvs/yast?rev=41747&view=rev Log: - Some functions from Internet were moved to newly created InternetDevices because of dependency on Provirer module. Modified: trunk/yast2/library/network/src/Internet.ycp trunk/yast2/package/yast2.changes Modified: trunk/yast2/library/network/src/Internet.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/Interne... ============================================================================== --- trunk/yast2/library/network/src/Internet.ycp (original) +++ trunk/yast2/library/network/src/Internet.ycp Fri Nov 2 15:35:21 2007 @@ -53,7 +53,7 @@ /** * Reset values. */ -define void Reset() { +global void Reset() { device = ""; type = ""; logfile = ""; @@ -66,31 +66,6 @@ } /** - * Set device from argument as default network device - */ -global define void SetDevice(string dev){ - device=dev; - NetworkDevices::Select(device); - type = NetworkDevices::FastestType(device); - provider = NetworkDevices::Current["PROVIDER"]:""; - if (provider != "") { - import "Provider"; - Provider::Read(); - Provider::Select(provider); - demand = Provider::Current["DEMAND"]:"no" == "yes"; - password = Provider::Current["PASSWORD"]:""; - askpassword = Provider::Current["ASKPASSWORD"]:"no" == "yes"; - capi_adsl = Provider::Current["PPPMODE"]:"pppoe" == "capi-adsl"; - capi_isdn = Provider::Current["PPPMODE"]:"ippp" == "capi-isdn"; - } - - /* Set logfile */ - if (type == "dsl" || type == "modem" || (type == "isdn" && capi_isdn)) - logfile = "/var/log/smpppd/ifcfg-" + device + ".log"; - -} - -/** * Used if NetworkDevices cannot find anything (usually because NM runs) * Calls ip * @return eg. ["eth0", "eth1"] @@ -109,30 +84,6 @@ } /** - * Find the fastest connection to the Internet - * @return true if a "good" connection was found - */ -global define boolean FindFastest() { - - Reset(); - - NetworkDevices::Read(); - device = NetworkDevices::Fastest(); - if ((string)SCR::Read(.sysconfig.network.config.NETWORKMANAGER)=="yes" && device == "") - { - device = GetDevices ()[0]:""; - } - - y2milestone("fastest=%1", device); - - /* No fallback since there are devices that must not be tested (e.g. lo) */ - if(device == "") return false; - - SetDevice(device); - return true; -} - -/** * Start the fastest interface * @param log file for the commands output * @return true if successful started Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=4... ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Fri Nov 2 15:35:21 2007 @@ -5,6 +5,8 @@ RPM dependencies. - Adjusted RPM dependencies. - Added some more texts for firewall services defined by packages. +- Some functions from Internet were moved to newly created + InternetDevices because of dependency on Provirer module. - 2.16.6 ------------------------------------------------------------------- -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org