aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-03-08 15:44:52 -0500
committerBill Nottingham <notting@redhat.com>2012-03-08 15:44:52 -0500
commit2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870 (patch)
treef272458d6b9efb3e94d45d09512a635335e31bed /sysconfig/network-scripts/ifup-eth
parentcb42a762e69037502d0549d3a79a41e292af8aad (diff)
downloadinitscripts-2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870.tar
initscripts-2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870.tar.gz
initscripts-2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870.tar.bz2
initscripts-2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870.tar.xz
initscripts-2858dfa0b9b2c56dad8d46d5ff9aabe05a67c870.zip
Lease files are now copied at boot by a systemd service; don't copy them here.
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth7
1 files changed, 0 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 3037941e..335394f8 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -192,13 +192,6 @@ if [ -n "${DYNCONFIG}" ] && [ -x /sbin/dhclient ]; then
else
DHCLIENTCONF='';
fi;
- # copy any lease obtained by the initrd
- for file in /run/initramfs/net.${DEVICE}.lease; do
- if [ -f "${file}" ]; then
- mv -f $file /var/lib/dhclient/dhclient-${DEVICE}.leases
- [ -x /sbin/restorecon ] && restorecon /var/lib/dhclient/dhclient-${DEVICE}.leases > /dev/null 2>&1
- fi
- done
DHCLIENTARGS="${DHCLIENTARGS} -H ${DHCP_HOSTNAME:-${HOSTNAME%%.*}} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid"
echo
echo -n $"Determining IP information for ${DEVICE}..."