fix very stupid error
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 27 Dec 2005 03:46:53 +0000 (03:46 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 27 Dec 2005 03:46:53 +0000 (03:46 +0000)
lib/python/Components/Network.py
lib/python/Plugins/update.py

index 99afb75..8375d23 100644 (file)
@@ -12,7 +12,7 @@ class Network:
                # fixme using interfaces.tmp instead of interfaces for now
                fp = file('/etc/network/interfaces', 'w')
                fp.write("auto eth0\n")
-               if (config.network.dhcp.value == _("yes")):
+               if (config.network.dhcp.value == 1):
                        fp.write("iface eth0 inet dhcp\n")
                else:
                        fp.write("iface eth0 inet static\n")
index 01e986e..a1525cf 100644 (file)
@@ -30,7 +30,6 @@ class Example(Screen):
        def doUpdate(self, val = False):
                
                if val:
-                       print "updating"
                        lines = os.popen("ipkg update && ipkg upgrade", "r").readlines()
                        string = ""
                        for x in lines: