aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Network.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Network.py')
-rw-r--r--lib/python/Components/Network.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 22271ec8..484424be 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")