# Force dhclient to ingnore 'routers' option on all interfaces.
mkdir -p /etc/dhcp
echo "supersede routers 0;" > /etc/dhcp/dhclient.conf
if (grep -q "^\s*DHCLIENTARGS" /etc/sysconfig/network); then
    sed -i 's#^\s*DHCLIENTARGS.*#DHCLIENTARGS="-cf /etc/dhcp/dhclient.conf"#' /etc/sysconfig/network
else
    echo 'DHCLIENTARGS="-cf /etc/dhcp/dhclient.conf"' >> /etc/sysconfig/network
fi
rm -f /etc/dhcp/dhclient-eth*.conf

# Force dhclient to ingnore 'routers' option on all interfaces.
mkdir -p /etc/dhcp
echo "supersede routers 0;" > /etc/dhcp/dhclient.conf
if (grep -q "^\s*DHCLIENTARGS" /etc/sysconfig/network); then
    sed -i 's#^\s*DHCLIENTARGS.*#DHCLIENTARGS="-cf /etc/dhcp/dhclient.conf"#' /etc/sysconfig/network
else
    echo 'DHCLIENTARGS="-cf /etc/dhcp/dhclient.conf"' >> /etc/sysconfig/network
fi
# Anaconda leave behind dhclient settings for particular interfaces which conflicts
# with our global settings we create in /etc/dhcp/dhclient.conf.
# To delete these artefacts it's easy way to handle this.
rm -f /etc/dhcp/dhclient-eth*.conf

Add comment about Anaconda dhclient artifacts.
Add comment about Anaconda dhclient artifacts.
