mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- allow to change hostname in both cases (dhcp and static ip)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1844 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -236,14 +236,13 @@ void CNetworkSetup::showNetworkSetup()
|
|||||||
CMenuForwarder *m3 = new CMenuForwarder(LOCALE_NETWORKMENU_BROADCAST , networkConfig->inet_static, network_broadcast , networkSettings_Broadcast );
|
CMenuForwarder *m3 = new CMenuForwarder(LOCALE_NETWORKMENU_BROADCAST , networkConfig->inet_static, network_broadcast , networkSettings_Broadcast );
|
||||||
CMenuForwarder *m4 = new CMenuForwarder(LOCALE_NETWORKMENU_GATEWAY , networkConfig->inet_static, network_gateway , networkSettings_Gateway );
|
CMenuForwarder *m4 = new CMenuForwarder(LOCALE_NETWORKMENU_GATEWAY , networkConfig->inet_static, network_gateway , networkSettings_Gateway );
|
||||||
CMenuForwarder *m5 = new CMenuForwarder(LOCALE_NETWORKMENU_NAMESERVER, networkConfig->inet_static, network_nameserver, networkSettings_NameServer);
|
CMenuForwarder *m5 = new CMenuForwarder(LOCALE_NETWORKMENU_NAMESERVER, networkConfig->inet_static, network_nameserver, networkSettings_NameServer);
|
||||||
CMenuForwarder *m8 = new CMenuForwarder(LOCALE_NETWORKMENU_HOSTNAME , networkConfig->inet_static, network_hostname , networkSettings_Hostname );
|
CMenuForwarder *m8 = new CMenuForwarder(LOCALE_NETWORKMENU_HOSTNAME , true , network_hostname , networkSettings_Hostname );
|
||||||
|
|
||||||
dhcpDisable[0] = m1;
|
dhcpDisable[0] = m1;
|
||||||
dhcpDisable[1] = m2;
|
dhcpDisable[1] = m2;
|
||||||
dhcpDisable[2] = m3;
|
dhcpDisable[2] = m3;
|
||||||
dhcpDisable[3] = m4;
|
dhcpDisable[3] = m4;
|
||||||
dhcpDisable[4] = m5;
|
dhcpDisable[4] = m5;
|
||||||
dhcpDisable[5] = m8;
|
|
||||||
|
|
||||||
CMenuOptionChooser* o2 = new CMenuOptionChooser(LOCALE_NETWORKMENU_DHCP, &network_dhcp, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this);
|
CMenuOptionChooser* o2 = new CMenuOptionChooser(LOCALE_NETWORKMENU_DHCP, &network_dhcp, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this);
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
|
|||||||
std::string old_mac_addr;
|
std::string old_mac_addr;
|
||||||
|
|
||||||
|
|
||||||
CMenuForwarder* dhcpDisable[6];
|
CMenuForwarder* dhcpDisable[5];
|
||||||
CMenuForwarder* wlanEnable[2];
|
CMenuForwarder* wlanEnable[2];
|
||||||
|
|
||||||
void restoreNetworkSettings();
|
void restoreNetworkSettings();
|
||||||
|
Reference in New Issue
Block a user