diff options
author | Bill Nottingham <notting@redhat.com> | 2005-03-03 21:09:18 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-03-03 21:09:18 +0000 |
commit | 178740d76e846a66e044dc270e881bd774b38fd2 (patch) | |
tree | a4c780fd5c54aeb3ddffdbd01a0ef27dde0be1de /sysconfig/network-scripts/ifup-eth | |
parent | e2d4fb9de77b0e2f2dab503b58491ffb2fd04c36 (diff) | |
download | initscripts-178740d76e846a66e044dc270e881bd774b38fd2.tar initscripts-178740d76e846a66e044dc270e881bd774b38fd2.tar.gz initscripts-178740d76e846a66e044dc270e881bd774b38fd2.tar.bz2 initscripts-178740d76e846a66e044dc270e881bd774b38fd2.tar.xz initscripts-178740d76e846a66e044dc270e881bd774b38fd2.zip |
woops
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 393a966e..b488d272 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -22,6 +22,15 @@ need_config ${CONFIG} source_config +# Old BOOTP variable +if [ "${BOOTP}" = "yes" ]; then + BOOTPROTO=bootp +fi + +if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then + DYNCONFIG=true +fi + # load the module associated with that device # /sbin/modprobe ${REALDEVICE} is_available ${REALDEVICE} @@ -134,7 +143,7 @@ if [ -w /etc/dhclient-${DEVICE}.conf ] && [ -x /sbin/dhclient ] ; then rm -f /etc/dhclient-${DEVICE}.conf.ifupnew fi -if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then +if [ -n "${DYNCONFIG}" ]; then PUMPARGS=$PUMPARGS DHCPCDARGS="$DHCPCDARGS -n" if [[ "${PERSISTENT_DHCLIENT}" = [yY1]* ]]; then @@ -194,8 +203,6 @@ if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then FWHACK=1 fi - release_dhcp_lease - if [ -x /sbin/dhclient ] && /sbin/dhclient ${DHCLIENTARGS} ${DEVICE} ; then echo $" done." else |