fi
}
+if [ x"${DNS_SERVER_ENA}" == xyes ]; then
+ cat > /etc/dhclient-enter-hooks << "EOF"
+# If named is running, do not let dhclient create or modify resolv.conf
+# by specifying an empty function hook:
+make_resolv_conf(){
+ :
+}
+EOF
+ chmod u+x /etc/dhclient-enter-hooks
+else
+ if [ -f /etc/dhclient-enter-hooks ]; then
+ rm /etc/dhclient-enter-hooks
+ fi
+fi
+
# See how we were called.
case "$1" in
start)
sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /etc/dhclient.conf
- cat > /etc/dhclient-enter-hooks << "EOF"
-# If named is running, do not let dhclient create or modify resolv.conf
-# by specifyng an empty function hook:
-make_resolv_conf(){
- :
-}
-EOF
- chmod u+x /etc/dhclient-enter-hooks
-
cat > /etc/sysconfig/network/dhcp-client << "EOF"
# dhcp-client
# DHCP client program informations