diff options
author | Bill Nottingham <notting@redhat.com> | 2006-07-13 18:00:26 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-07-13 18:00:26 +0000 |
commit | 499517b152f92d1e7d1c74bf1d9171e29e261e9c (patch) | |
tree | 44e6f75811caa1438814202b7f9752eb6e31c2dd | |
parent | 0c9bd51b921669fc60693430ae98f9d7911a3908 (diff) | |
download | initscripts-499517b152f92d1e7d1c74bf1d9171e29e261e9c.tar initscripts-499517b152f92d1e7d1c74bf1d9171e29e261e9c.tar.gz initscripts-499517b152f92d1e7d1c74bf1d9171e29e261e9c.tar.bz2 initscripts-499517b152f92d1e7d1c74bf1d9171e29e261e9c.tar.xz initscripts-499517b152f92d1e7d1c74bf1d9171e29e261e9c.zip |
copy any lease obtained by the initrd (#198601, <markmc@redhat.com>)
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 4 |
1 files changed, 4 insertions, 0 deletions
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}..." |