From 6ea3f090fe6d5711f4d627d3aebbb2a588ecf1d0 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 16 Aug 2010 15:46:44 -0700 Subject: remove low-level config dir usage --- scripts/vyatta-system-nameservers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-system-nameservers b/scripts/vyatta-system-nameservers index 8756bbb6..1df0f02c 100644 --- a/scripts/vyatta-system-nameservers +++ b/scripts/vyatta-system-nameservers @@ -33,7 +33,7 @@ print_usage() restart_dnsmasq () { # restart dnsmasq if dns-forwarding is configured - if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then + if cli-shell-api existsActive service dns forwarding; then /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding >&/dev/null fi } -- cgit v1.2.3