kadischi/post_install_scripts 06sysconfig.py,1.3,1.4

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Fri Sep 1 18:08:40 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/post_install_scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26215/kadischi/post_install_scripts

Modified Files:
	06sysconfig.py 
Log Message:
Take care of HWADDR and tweak network config


Index: 06sysconfig.py
===================================================================
RCS file: /cvs/devel/kadischi/post_install_scripts/06sysconfig.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- 06sysconfig.py	31 Mar 2006 21:03:41 -0000	1.3
+++ 06sysconfig.py	1 Sep 2006 18:08:38 -0000	1.4
@@ -35,6 +35,13 @@
     shf["RUN_FIRSTBOOT"] = "YES"
     shf.write ()
 
+def tweak_network_config (rootdir):
+    shf = sysconfig_file (rootdir, "network-scripts/ifcfg-eth0")
+    shf["DEVICE"] = "eth0"
+    shf["BOOTPROTO"] = "dhcp"
+    shf["ONBOOT"] = "yes"
+    shf.write ()
+
 def tweak_kudzu_config (rootdir):
     shf = sysconfig_file (rootdir, "kudzu")
     # Take default actions without prompting
@@ -50,5 +57,6 @@
 tweak_readonly_root_config (rootdir)
 tweak_udev_config (rootdir)
 tweak_firstboot_config (rootdir)
+tweak_network_config (rootdir)
 #tweak_kudzu_config (rootdir)
 tweak_livecd (rootdir)




More information about the fedora-extras-commits mailing list