aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-03-09 11:18:10 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 11:18:10 -0500
commit60b84547c03ec7d82633f3c9d6939af4747a6bff (patch)
tree07c354e96bfc9586b66183c1f9693c5161323867 /sysconfig/network-scripts/ifdown-eth
parent2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870 (diff)
downloadinitscripts-60b84547c03ec7d82633f3c9d6939af4747a6bff.tar
initscripts-60b84547c03ec7d82633f3c9d6939af4747a6bff.tar.gz
initscripts-60b84547c03ec7d82633f3c9d6939af4747a6bff.tar.bz2
initscripts-60b84547c03ec7d82633f3c9d6939af4747a6bff.tar.xz
initscripts-60b84547c03ec7d82633f3c9d6939af4747a6bff.zip
Use NetworkManager-compatible lease file names by default.
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index fcbae80e..e120af76 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -86,8 +86,9 @@ retcode=0
for VER in "" 6 ; do
if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then
dhcpid=$(cat /var/run/dhclient$VER-${DEVICE}.pid)
+ generate_lease_file_name $VER
if [[ "$DHCPRELEASE" = [yY1]* ]]; then
- /sbin/dhclient -r -lf /var/lib/dhclient/dhclient$VER-${DEVICE}.leases -pf /var/run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
+ /sbin/dhclient -r -lf ${LEASEFILE} -pf /var/run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
retcode=$?
else
kill $dhcpid >/dev/null 2>&1