summaryrefslogtreecommitdiff
path: root/templates/system/static-host-mapping/host-name/node.def
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 18:51:35 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 18:51:35 -0700
commitd884817a4643d15d3a7a7c9b3a814cec49b373f1 (patch)
tree9dab4446e5b53586ffb795a6ce9acc60679c0cf9 /templates/system/static-host-mapping/host-name/node.def
parenta6ec2ff6532ce855c1593bf28bef7df188701688 (diff)
downloadvyatta-cfg-quagga-d884817a4643d15d3a7a7c9b3a814cec49b373f1.tar.gz
vyatta-cfg-quagga-d884817a4643d15d3a7a7c9b3a814cec49b373f1.zip
remove more low-level config dir usages
Diffstat (limited to 'templates/system/static-host-mapping/host-name/node.def')
-rw-r--r--templates/system/static-host-mapping/host-name/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/system/static-host-mapping/host-name/node.def b/templates/system/static-host-mapping/host-name/node.def
index 693b5592..09bc9dbe 100644
--- a/templates/system/static-host-mapping/host-name/node.def
+++ b/templates/system/static-host-mapping/host-name/node.def
@@ -12,10 +12,10 @@ end: sudo sh -c "
touch /etc/hosts
sed -i '/ $VAR(@) .*#vyatta entry/d' /etc/hosts
if [ -z \"$VAR(./inet/@)\" ]; then
- if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then /etc/init.d/dnsmasq restart >&/dev/null; fi
+ if cli-shell-api existsActive service dns forwarding; then /etc/init.d/dnsmasq restart >&/dev/null; fi
exit 0
fi
declare -a aliases=( $VAR(alias/@@) )
echo -e \"$VAR(inet/@)\\t $VAR(@) \${aliases[*]} \\t #vyatta entry\" >> /etc/hosts
- if [ -d /opt/vyatta/config/active/service/dns/forwarding ]; then /etc/init.d/dnsmasq restart >&/dev/null; fi"
+ if cli-shell-api existsActive service dns forwarding; then /etc/init.d/dnsmasq restart >&/dev/null; fi"