aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-03-20 16:19:59 +0000
committerBill Nottingham <notting@redhat.com>2000-03-20 16:19:59 +0000
commitdae9762ca5510a00fd2217c2e8263b364db85929 (patch)
tree7554eca16798c71a9574cc9763c3cb0fd087399f
parentf46ccc3e3e2a55c2fc61a250396535ed1dccdf60 (diff)
downloadinitscripts-dae9762ca5510a00fd2217c2e8263b364db85929.tar
initscripts-dae9762ca5510a00fd2217c2e8263b364db85929.tar.gz
initscripts-dae9762ca5510a00fd2217c2e8263b364db85929.tar.bz2
initscripts-dae9762ca5510a00fd2217c2e8263b364db85929.tar.xz
initscripts-dae9762ca5510a00fd2217c2e8263b364db85929.zip
honor NEEDHOSTNAME flag for pump as well
-rwxr-xr-xsysconfig/network-scripts/ifup3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 6b1262c7..0089642c 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -88,6 +88,9 @@ if [ -n "$PUMP" ]; then
if [ -n "$DHCP_HOSTNAME" ]; then
PUMPARGS="-h $DHCP_HOSTNAME"
fi
+ if [ -n "$NEEDHOSTNAME" ]; then
+ PUMPARGS="$PUMPARGS --lookup-hostname"
+ fi
echo -n "Determining IP information for $DEVICE..."
if /sbin/pump $PUMPARGS -i $DEVICE ; then
echo " done."