- 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:
focus
2010-03-15 20:49:03 +00:00
parent a0fffc1573
commit ba1f0ceb83
22 changed files with 715 additions and 431 deletions

View File

@@ -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");
}