summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/gateway-address/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def
index ee4cbabc..6c2c61d2 100644
--- a/templates/system/gateway-address/node.def
+++ b/templates/system/gateway-address/node.def
@@ -2,7 +2,7 @@ priority: 400
type: ipv4
help: Set default gateway
create: vyatta-vtysh -c "configure terminal" -c "ip route 0.0.0.0/0 $VAR(@)"
-update: oldgw=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl '$(/system/gateway-address/@)'`
+update: oldgw=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl \\$VAR\(/system/gateway-address/@\)`
if [ -n "$oldgw" ]; then
vyatta-vtysh --noerror -c "configure terminal" \
-c "no ip route 0.0.0.0/0 $oldgw"