aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
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/network-functions
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/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index d72901ea..70896ff1 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -283,7 +283,7 @@ do_netreport ()
{
# Notify programs that have requested notification
(
- cd /var/run/netreport || exit
+ cd /run/netreport || exit
for i in * ; do
if [ -f $i ]; then
if [ "$(id -u)" = "0" ]; then
@@ -654,7 +654,7 @@ change_resolv_conf ()
if [ $r -eq 0 ]; then
[ -x /sbin/restorecon ] && /sbin/restorecon /etc/resolv.conf >/dev/null 2>&1 # reset the correct context
/usr/bin/logger -p local7.notice -t "NET" -i "$0 : updated /etc/resolv.conf"
- [ -e /var/run/nscd/socket ] && /usr/sbin/nscd -i hosts # invalidate cache
+ [ -e /run/nscd/socket ] && /usr/sbin/nscd -i hosts # invalidate cache
fi
return $r
}