diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-15 12:34:58 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-15 12:34:58 +0000 |
| commit | 9fabf78619c384aeabc9f6ac941918531200fbb5 (patch) | |
| tree | 908c2da46e5c7ba66fc6a857c6be4fa91c96351a /lib/python/Components/Network.py | |
| parent | 9b6cc418acab0a1af59efbc756d7a0dc357b8868 (diff) | |
| download | enigma2-9fabf78619c384aeabc9f6ac941918531200fbb5.tar.gz enigma2-9fabf78619c384aeabc9f6ac941918531200fbb5.zip | |
fix initial IP not shown in network config
Diffstat (limited to 'lib/python/Components/Network.py')
| -rw-r--r-- | lib/python/Components/Network.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 7513901f..0493f0fa 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -139,11 +139,9 @@ class Network: iNetwork = Network() def InitNetwork(): - ip = iNetwork.getCurrentIP() - config.network = ConfigSubsection() config.network.dhcp = NoSave(ConfigYesNo(default=True)) - config.network.ip = NoSave(ConfigIP(default=[0,0,0,0])) + config.network.ip = NoSave(ConfigIP(default=iNetwork.getCurrentIP())) config.network.netmask = NoSave(ConfigIP(default=[255,255,255,0])) config.network.gateway = NoSave(ConfigIP(default=[192,168,1,3])) config.network.dns = NoSave(ConfigIP(default=[192,168,1,3])) |
