diff options
author | Jason Vas Dias <jvdias@redhat.com> | 2004-07-30 22:01:52 +0000 |
---|---|---|
committer | Jason Vas Dias <jvdias@redhat.com> | 2004-07-30 22:01:52 +0000 |
commit | cd54cb384af33f32513ac6316907e849e8e13df5 (patch) | |
tree | a30a03d78af56dedd356e631e0e8fd0a66da39c5 /sysconfig | |
parent | 591483f13e955ba024d736da22e3747725c40fd3 (diff) | |
download | initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.gz initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.bz2 initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.xz initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.zip |
fix for bug 125712: added change_resolv_conf function to network-functions; made ipup-post and ipdown-post invoke it
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 3 |
1 files changed, 2 insertions, 1 deletions
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; |