aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorJason Vas Dias <jvdias@redhat.com>2004-08-11 15:05:17 +0000
committerJason Vas Dias <jvdias@redhat.com>2004-08-11 15:05:17 +0000
commite0529f059d8218ae7458e36f5cd2335bec30356d (patch)
treea23077c940a8acc0511ebcc8808bc3d2062c1339 /sysconfig/network-scripts
parent44d54fb05e96d3b76a81e1abc41c1f5691795d64 (diff)
downloadinitscripts-e0529f059d8218ae7458e36f5cd2335bec30356d.tar
initscripts-e0529f059d8218ae7458e36f5cd2335bec30356d.tar.gz
initscripts-e0529f059d8218ae7458e36f5cd2335bec30356d.tar.bz2
initscripts-e0529f059d8218ae7458e36f5cd2335bec30356d.tar.xz
initscripts-e0529f059d8218ae7458e36f5cd2335bec30356d.zip
fixed bug #120093: added PERSISTANT_DHCLIENT option to ifcfg files
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 41d8821a..53a6ebbf 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -252,7 +252,12 @@ fi
if [ -n "${DYNCONFIG}" ]; then
PUMPARGS=$PUMPARGS
DHCPCDARGS="$DHCPCDARGS -n"
- DHCLIENTARGS="${DHCLIENTARGS} -1 -q -lf /var/lib/dhcp/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid -cf /etc/dhclient-${DEVICE}.conf"
+ if [[ "${PERSISTANT_DHCLIENT}" = [yY1]* ]]; then
+ ONESHOT="";
+ else
+ ONESHOT="-1";
+ fi;
+ DHCLIENTARGS="${DHCLIENTARGS} ${ONESHOT} -q -lf /var/lib/dhcp/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid -cf /etc/dhclient-${DEVICE}.conf"
if [ -n "${DHCP_HOSTNAME}" ]; then
# Send a host-name to the DHCP server (requ. by some dhcp servers).
PUMPARGS="${PUMPARGS} -h ${DHCP_HOSTNAME}"