aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-12-12 08:10:37 +0000
committerBill Nottingham <notting@redhat.com>2000-12-12 08:10:37 +0000
commite776fdd1ea74a05c057f9d18a3bb09b3849a2c4b (patch)
tree663792ced75fdcf4984b4d9170f6d467cfb68df2 /sysconfig/network-scripts/ifup
parent5de1b7a730964525debb9284346d6f17b2e3ac7f (diff)
downloadinitscripts-e776fdd1ea74a05c057f9d18a3bb09b3849a2c4b.tar
initscripts-e776fdd1ea74a05c057f9d18a3bb09b3849a2c4b.tar.gz
initscripts-e776fdd1ea74a05c057f9d18a3bb09b3849a2c4b.tar.bz2
initscripts-e776fdd1ea74a05c057f9d18a3bb09b3849a2c4b.tar.xz
initscripts-e776fdd1ea74a05c057f9d18a3bb09b3849a2c4b.zip
honor PEERDNS=no for pump and dhcpcd too (#18619)
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 63a89fff..b232f0c1 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -98,6 +98,10 @@ if [ -n "${DYNCONFIG}" ]; then
PUMPARGS="${PUMPARGS} --lookup-hostname"
DHCPCDARGS="${DHCPCDARGS} -H"
fi
+ if [ "${PEERDNS}" = "no" ]; then
+ PUMPARGS="${PUMPARGS} -d"
+ DHCPDARGS="${DHCPDARGS -R"
+ fi
echo -n "Determining IP information for ${DEVICE}..."
if /sbin/pump ${PUMPARGS} -i ${DEVICE} ; then
echo " done."