summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-08-14 16:58:47 +0000
committerMike Fulbright <msf@redhat.com>2003-08-14 16:58:47 +0000
commit6ea3a0e4e4c135d222b76dab956d3c4898c3dccc (patch)
tree8e2ae01eabac4c1fa97dc5efd144a9800e65f0ad /network.py
parent3c37d7a6db8720adbdfaff5db508af63d66a90c3 (diff)
downloadanaconda-6ea3a0e4e4c135d222b76dab956d3c4898c3dccc.tar.gz
anaconda-6ea3a0e4e4c135d222b76dab956d3c4898c3dccc.tar.xz
anaconda-6ea3a0e4e4c135d222b76dab956d3c4898c3dccc.zip
write out device description to ifcfg-ethX files
Diffstat (limited to 'network.py')
-rw-r--r--network.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/network.py b/network.py
index 50f5fdc8a..63acfa2bb 100644
--- a/network.py
+++ b/network.py
@@ -363,6 +363,9 @@ class Network:
device)
f = open(fn, "w")
os.chmod(fn, 0644)
+ if len(dev.get("DESC")) > 0:
+ f.write("# %s\n" % (dev.get("DESC"),))
+
f.write(str(dev))
f.close()