mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- network menu (#264)
- tune timeout (#266) - satfinder (#269) - tuxtxt: new monospace font to support more languages option to select teletext font charset selection from pmt more menu languages from tuxbox cvs cleanup sutitiles start screen needs testing. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@486 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -29,12 +29,30 @@
|
||||
CNetworkConfig::CNetworkConfig(void)
|
||||
{
|
||||
char our_nameserver[16];
|
||||
|
||||
netGetNameserver(our_nameserver);
|
||||
nameserver = our_nameserver;
|
||||
inet_static = getInetAttributes("eth0", automatic_start, address, netmask, broadcast, gateway);
|
||||
|
||||
init_vars();
|
||||
copy_to_orig();
|
||||
}
|
||||
|
||||
void CNetworkConfig::init_vars(void)
|
||||
{
|
||||
char mask[16];
|
||||
char _broadcast[16];
|
||||
char router[16];
|
||||
char ip[16];
|
||||
|
||||
netGetDefaultRoute(router);
|
||||
gateway = router;
|
||||
netGetIP((char *) "eth0", ip, mask, _broadcast);
|
||||
netmask = mask;
|
||||
broadcast = _broadcast;
|
||||
address = ip;
|
||||
}
|
||||
|
||||
void CNetworkConfig::copy_to_orig(void)
|
||||
{
|
||||
orig_automatic_start = automatic_start;
|
||||
@@ -108,6 +126,9 @@ int mysystem(char * cmd, char * arg1, char * arg2)
|
||||
void CNetworkConfig::startNetwork(void)
|
||||
{
|
||||
system("/sbin/ifup -v eth0");
|
||||
if (!inet_static) {
|
||||
init_vars();
|
||||
}
|
||||
//mysystem((char *) "ifup", (char *) "-v", (char *) "eth0");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user