aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-08-02 09:07:44 -0400
committerDee'Kej <deekej@linuxmail.org>2017-08-03 13:47:59 +0200
commitbf00a00483cfa675ea665d6a0dd40d5629bc928a (patch)
tree8feb8c2af7f83edc6ee94e83d7a78432ef27dbc9 /sysconfig/network-scripts/ifdown-eth
parenta019e06a883665ebab24539247ce63bf558fe699 (diff)
downloadinitscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.gz
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.bz2
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.xz
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.zip
Replace /var/run with /run everywhere
https://bugzilla.redhat.com/show_bug.cgi?id=1471489
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index 040d52d8..932dd882 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -88,19 +88,19 @@ fi
retcode=0
[ -n "$(pidof -x dhclient)" ] && {
for VER in "" 6 ; do
- if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then
- dhcpid=$(cat /var/run/dhclient$VER-${DEVICE}.pid)
+ if [ -f "/run/dhclient$VER-${DEVICE}.pid" ]; then
+ dhcpid=$(cat /run/dhclient$VER-${DEVICE}.pid)
generate_lease_file_name $VER
if is_true "$DHCPRELEASE"; then
- /sbin/dhclient -r -lf ${LEASEFILE} -pf /var/run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
+ /sbin/dhclient -r -lf ${LEASEFILE} -pf /run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1
retcode=$?
else
kill $dhcpid >/dev/null 2>&1
retcode=$?
reason=STOP$VER interface=${DEVICE} /sbin/dhclient-script
fi
- if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then
- rm -f /var/run/dhclient$VER-${DEVICE}.pid
+ if [ -f "/run/dhclient$VER-${DEVICE}.pid" ]; then
+ rm -f /run/dhclient$VER-${DEVICE}.pid
kill $dhcpid >/dev/null 2>&1
fi
fi
@@ -140,7 +140,7 @@ if [ -n "${BRIDGE}" ] && [ -x /usr/sbin/brctl ]; then
/usr/sbin/brctl delif -- ${BRIDGE} ${DEVICE}
# Upon removing a device from a bridge,
# it's necessary to make radvd reload its config
- [ -r /var/run/radvd/radvd.pid ] && kill -HUP $(cat /var/run/radvd/radvd.pid)
+ [ -r /run/radvd/radvd.pid ] && kill -HUP $(cat /run/radvd/radvd.pid)
if [ -d /sys/class/net/${BRIDGE}/brif ] && [ $(ls -1 /sys/class/net/${BRIDGE}/brif | wc -l) -eq 0 ]; then
/usr/sbin/brctl delbr -- ${BRIDGE}
fi