[yast-commit] r40756 - /trunk/network/src/clients/save_network.ycp

Author: kmachalkova Date: Wed Sep 5 10:58:59 2007 New Revision: 40756 URL: http://svn.opensuse.org/viewcvs/yast?rev=40756&view=rev Log: Save proxy settings at the end of 1st stage of installation (#298001) Modified: trunk/network/src/clients/save_network.ycp Modified: trunk/network/src/clients/save_network.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/clients/save_network.... ============================================================================== --- trunk/network/src/clients/save_network.ycp (original) +++ trunk/network/src/clients/save_network.ycp Wed Sep 5 10:58:59 2007 @@ -18,6 +18,7 @@ import "FileUtils"; import "Netmask"; import "NetworkStorage"; +import "Proxy"; import "Installation"; import "String"; import "Mode"; @@ -82,6 +83,7 @@ ReadInstallInfItem(install_inf, "nisdomain", "NISDomain"); ReadInstallInfItem(install_inf, "hostname", "Hostname"); ReadInstallInfItem(install_inf, "module", "Alias"); + ReadInstallInfItem(install_inf, "proxy", "Proxy"); // ReadInstallInfItem(install_inf, "options", "Options"); ReadInstallInfItem(install_inf, "hwaddr", "HWAddr"); ReadInstallInfItem(install_inf, "ethtool_options", "ethtool"); @@ -267,6 +269,15 @@ SCR::Write(.target.string, "/etc/resolv.conf", text); } } + + // create proxy sysconfig file + if (size(InstallInf["proxy"]:"")>0) { + y2milestone("Writing proxy settings: %1", InstallInf["proxy"]:""); + map ex = Proxy::Export(); + Proxy::Read(); + Proxy::Import( ex ); + Proxy::Write(); + } // create defaultdomain if (size(InstallInf["nisdomain"]:"")>0 && FileUtils::Exists("/etc/defaultdomain")){ y2milestone("Write defaultdomain: %1", InstallInf["nisdomain"]:""); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org