From acd54f700974ac04a45fcda476d16a7bbb3e5bf8 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sat, 28 Jan 2006 11:12:50 +0000 Subject: [PATCH] add loopback device --- lib/python/Components/Network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 22271ec..484424b 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -11,6 +11,8 @@ class Network: # fixme restarting and updating the network too often. possible fix: check current config and execute only if changed :/ # fixme using interfaces.tmp instead of interfaces for now fp = file('/etc/network/interfaces', 'w') + fp.write("auto lo\n") + fp.write("iface lo inet loopback\n") fp.write("auto eth0\n") if (currentConfigSelectionElement(config.network.dhcp) == "yes"): fp.write("iface eth0 inet dhcp\n") -- 2.7.4