From cd54cb384af33f32513ac6316907e849e8e13df5 Mon Sep 17 00:00:00 2001 From: Jason Vas Dias Date: Fri, 30 Jul 2004 22:01:52 +0000 Subject: fix for bug 125712: added change_resolv_conf function to network-functions; made ipup-post and ipdown-post invoke it --- sysconfig/network-scripts/network-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 76879cf4..c3160dbe 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -380,7 +380,8 @@ change_resolv_conf () r=$? if [ $r -eq 0 ]; then /sbin/initlog -f local7 -p notice -n NET -s "$0 : updated /etc/resolv.conf"; - /sbin/service nscd condrestart >/dev/null 2>&1; + /sbin/service nscd condrestart >/dev/null 2>&1; # remove when nscd is fixed! + [ -e /var/lock/subsys/nscd ] && /sbin/nscd -i hosts; # invalidate cache return $?; fi; return $r; -- cgit v1.2.1