From 16a9f19c9a595423187f67d4fc7f974520210083 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Mon, 2 Nov 2009 18:32:04 -0800 Subject: Fix call the vyatta-cli-expand-var.pl. --- templates/system/gateway-address/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3