diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-12-12 11:57:39 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-12-12 11:57:39 -0500 |
commit | e04def47ba15232a563879240c015113b1a704d2 (patch) | |
tree | 005f900d0df53b3391c0bcdd50acf60c860cd52b /snippets/post_install_network_config | |
parent | 86c9d1aa87efbda29e573d1e282549a13f6cbf70 (diff) | |
download | cobbler-e04def47ba15232a563879240c015113b1a704d2.tar.gz cobbler-e04def47ba15232a563879240c015113b1a704d2.tar.xz cobbler-e04def47ba15232a563879240c015113b1a704d2.zip |
Add nameservers to ifcfg
Diffstat (limited to 'snippets/post_install_network_config')
-rw-r--r-- | snippets/post_install_network_config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/snippets/post_install_network_config b/snippets/post_install_network_config index 3c78e36d..24c6f5d0 100644 --- a/snippets/post_install_network_config +++ b/snippets/post_install_network_config @@ -130,6 +130,12 @@ rm -f /etc/modprobe.conf mv /etc/modprobe.conf.new /etc/modprobe.conf + #set $nct = 0 + #for $nameserver in $name_servers + #set $ct = $nct + 1 + echo "DNS$ct=$nameserver" >> $devfile + #end for + echo "DEVICE=$iname" > $devfile echo "HWADDR=$mac" >> $devfile echo "ONBOOT=yes" >> $devfile |