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/network-functions | |
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/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index f59cf8d7..5bfb4724 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -393,29 +393,3 @@ change_resolv_conf () fi; return $r; } - - -kill_dhcp_client () -{ - pid=`cat /var/run/dhclient-${DEVICE}.pid` - kill $pid >/dev/null 2>&1 - rc=$? - reason=STOP interface=${DEVICE} /sbin/dhclient-script - if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then - rm -f /var/run/dhclient-${DEVICE}.pid - kill -9 $pid >/dev/null 2>&1 - fi - return $rc -} - -release_dhcp_lease () -{ - /sbin/dhclient -r -lf /var/lib/dhcp/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1 - rc=$? - if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then - rm -f /var/run/dhclient-${DEVICE}.pid - kill -9 $pid >/dev/null 2>&1 - fi - return $rc -} - |