aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-10-07 00:36:22 +0000
committerBill Nottingham <notting@redhat.com>2006-10-07 00:36:22 +0000
commit76292602a108c682796232ca79f79efaf34418e0 (patch)
tree3a2ec26650cff1f5adf1b444c24ef0eea1a62926 /sysconfig
parentdf2fdb0d63ed6d645646647b8e6583b0228a6d49 (diff)
downloadinitscripts-76292602a108c682796232ca79f79efaf34418e0.tar
initscripts-76292602a108c682796232ca79f79efaf34418e0.tar.gz
initscripts-76292602a108c682796232ca79f79efaf34418e0.tar.bz2
initscripts-76292602a108c682796232ca79f79efaf34418e0.tar.xz
initscripts-76292602a108c682796232ca79f79efaf34418e0.zip
restorecon on moved lease file
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth1
1 files changed, 1 insertions, 0 deletions
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