aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-08-20 15:35:53 +0000
committerBill Nottingham <notting@redhat.com>1999-08-20 15:35:53 +0000
commit6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38 (patch)
tree57f9cdcb740abc88d369d1436768b362485c4198
parent26ae2f336be269c337cdcab1e369857f11b55591 (diff)
downloadinitscripts-6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38.tar
initscripts-6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38.tar.gz
initscripts-6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38.tar.bz2
initscripts-6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38.tar.xz
initscripts-6e2ed50d7073bb3e1f47a3d856470a49cd9f0a38.zip
add option to pass hostname with pump
-rwxr-xr-xsysconfig/network-scripts/ifup6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 1fda5633..64309d5b 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -82,8 +82,12 @@ if [ -n "$MACADDR" ]; then
fi
if [ -n "$PUMP" ]; then
+ PUMPARGS=
+ if [ -n "$DHCP_HOSTNAME" ]; then
+ PUMPARGS="-h $DHCP_HOSTNAME"
+ fi
echo -n "Determining IP information for $DEVICE..."
- if /sbin/pump -i $DEVICE ; then
+ if /sbin/pump $PUMPARGS -i $DEVICE ; then
echo " done."
else
echo " failed."