[yast-commit] r47446 - /trunk/network/src/installation/inst_hostname.ycp
![](https://seccdn.libravatar.org/avatar/d95f774280866d45941b1365718208ff.jpg?s=120&d=mm&r=g)
Author: kmachalkova Date: Mon May 12 13:29:20 2008 New Revision: 47446 URL: http://svn.opensuse.org/viewcvs/yast?rev=47446&view=rev Log: Trying to fix #383336: generate random hostname & write evil 127.0.0.2 line to /etc/hosts also in case of autoconfiguration Modified: trunk/network/src/installation/inst_hostname.ycp Modified: trunk/network/src/installation/inst_hostname.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/installation/inst_hostname.ycp?rev=47446&r1=47445&r2=47446&view=diff ============================================================================== --- trunk/network/src/installation/inst_hostname.ycp (original) +++ trunk/network/src/installation/inst_hostname.ycp Mon May 12 13:29:20 2008 @@ -28,7 +28,7 @@ DNS::Read (); // handles NetworkConfig too if (DNS::hostname == "linux") -{ +{ srandom (); DNS::hostname = "linux-" + String::Random (4); // #157107 } @@ -37,9 +37,13 @@ NetworkConfig::DHCP["DHCLIENT_SET_HOSTNAME"] = ! Arch::is_laptop (); // TODO: policy for proposing a hostname -Wizard::SetDesktopIcon("dns"); +symbol ret = `next; -symbol ret = HostnameDialog (); +if ( ! GetInstArgs::automatic_configuration() ) +{ + Wizard::SetDesktopIcon("dns"); + ret = HostnameDialog (); +} if (ret == `next) { -- 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