From 499517b152f92d1e7d1c74bf1d9171e29e261e9c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 13 Jul 2006 18:00:26 +0000 Subject: copy any lease obtained by the initrd (#198601, ) --- sysconfig/network-scripts/ifup-eth | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 5d05c171..c3ff1709 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -165,6 +165,10 @@ if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then else DHCLIENTCONF=''; fi; + # copy any lease obtained by the initrd + if [ -f /dev/.dhclient-${DEVICE}.leases ] ; then + mv /dev/.dhclient-${DEVICE}.leases /var/lib/dhclient/dhclient-${DEVICE}.leases + fi DHCLIENTARGS="${DHCLIENTARGS} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid" echo echo -n $"Determining IP information for ${DEVICE}..." -- cgit v1.2.1