[yast-commit] r61186 - in /branches/SuSE-Code-11-SP1-Branch/network/src: lan/address.ycp modules/Host.ycp
Author: kmachalkova Date: Tue Mar 9 10:39:43 2010 New Revision: 61186 URL: http://svn.opensuse.org/viewcvs/yast?rev=61186&view=rev Log: Bother user with defining hostname only if we're not gonna have 127.0.0.2 in hosts Modified: branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp branches/SuSE-Code-11-SP1-Branch/network/src/modules/Host.ycp Modified: branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp?rev=61186&r1=61185&r2=61186&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/network/src/lan/address.ycp Tue Mar 9 10:39:43 2010 @@ -474,8 +474,9 @@ return false; } } else { - //User doesn't want to define hname for this static IP - if( !Popup::YesNo( _("No hostname has been specified. It is recommended to associate + // There'll be no 127.0.0.2 -> remind user to define some hostname + if( !Host::NeedDummyIP() && + !Popup::YesNo( _("No hostname has been specified. It is recommended to associate some hostname with static IP, otherwise the machine name will not be resolvable without active network connection.\n Really leave the hostname blank?")) ) { Modified: branches/SuSE-Code-11-SP1-Branch/network/src/modules/Host.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/src/modules/Host.ycp?rev=61186&r1=61185&r2=61186&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/src/modules/Host.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/network/src/modules/Host.ycp Tue Mar 9 10:39:43 2010 @@ -50,7 +50,7 @@ boolean initialized = false; -boolean NeedDummyIP() { +global boolean NeedDummyIP() { return DNS::write_hostname; } -- 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