From 76292602a108c682796232ca79f79efaf34418e0 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sat, 7 Oct 2006 00:36:22 +0000 Subject: restorecon on moved lease file --- sysconfig/network-scripts/ifup-eth | 1 + 1 file changed, 1 insertion(+) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 572c5171..f421060e 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -169,6 +169,7 @@ if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then # copy any lease obtained by the initrd if [ -f /dev/.dhclient-${DEVICE}.leases ] ; then mv -f /dev/.dhclient-${DEVICE}.leases /var/lib/dhclient/dhclient-${DEVICE}.leases + [ -x /sbin/restorecon ] && restorecon /var/lib/dhclient/dhclient-${DEVICE}.leases > /dev/null 2>&1 fi DHCLIENTARGS="${DHCLIENTARGS} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid" echo -- cgit v1.2.1