aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-03-10 19:40:56 +0100
committerHarald Hoyer <harald@redhat.com>2011-03-10 19:40:56 +0100
commitcec3312c40af12139d34ec25d60a9000279972fb (patch)
treecc4ac2663975e80d5368412e156fac75ea3db1ae
parentd83589bf852cc971295c55466d6638a7b40269a2 (diff)
downloadinitscripts-cec3312c40af12139d34ec25d60a9000279972fb.tar
initscripts-cec3312c40af12139d34ec25d60a9000279972fb.tar.gz
initscripts-cec3312c40af12139d34ec25d60a9000279972fb.tar.bz2
initscripts-cec3312c40af12139d34ec25d60a9000279972fb.tar.xz
initscripts-cec3312c40af12139d34ec25d60a9000279972fb.zip
network-scripts/ifup-eth: also check /dev/.run/initramfs
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 9377494c..1efa2719 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -178,7 +178,7 @@ if [ -n "${DYNCONFIG}" ] && [ -x /sbin/dhclient ]; then
DHCLIENTCONF='';
fi;
# copy any lease obtained by the initrd
- for file in /dev/.dhclient-${DEVICE}.leases /dev/.initramfs/net.${DEVICE}.lease ; do
+ for file in /dev/.dhclient-${DEVICE}.leases /dev/{.run/initramfs,.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