aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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."