diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-28 11:36:07 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-28 11:36:07 -0800 |
commit | 7527117842918d1288636b76bd77663e05664575 (patch) | |
tree | f214bf2ad87b6df09c8204db7576e9c95cee6a53 /templates/clear | |
parent | b31d2507b9ef7178f6acd3d5f3e00c881ff6944d (diff) | |
download | vyatta-op-7527117842918d1288636b76bd77663e05664575.tar.gz vyatta-op-7527117842918d1288636b76bd77663e05664575.zip |
add quoting for inline scripts in templates
Diffstat (limited to 'templates/clear')
-rw-r--r-- | templates/clear/arp/address/node.tag/node.def | 2 | ||||
-rw-r--r-- | templates/clear/arp/interface/node.tag/node.def | 2 | ||||
-rw-r--r-- | templates/clear/ip/route/cache/node.tag/node.def | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/clear/arp/address/node.tag/node.def b/templates/clear/arp/address/node.tag/node.def index 1cfd2a3..3813b29 100644 --- a/templates/clear/arp/address/node.tag/node.def +++ b/templates/clear/arp/address/node.tag/node.def @@ -1,3 +1,3 @@ help: Clear ARP cache for address allowed: echo -n '<ip_address>' -run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush to $4 +run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush to "$4" diff --git a/templates/clear/arp/interface/node.tag/node.def b/templates/clear/arp/interface/node.tag/node.def index eb0ec26..ca17543 100644 --- a/templates/clear/arp/interface/node.tag/node.def +++ b/templates/clear/arp/interface/node.tag/node.def @@ -2,4 +2,4 @@ help: Clear ARP cache for interface allowed: local -a array ; array=( /sys/class/net/{eth,vmnet}* ) ; echo -n ${array[@]##*/} -run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush dev $4 +run: sudo ${vyatta_bindir}/sudo-users/ip neigh flush dev "$4" diff --git a/templates/clear/ip/route/cache/node.tag/node.def b/templates/clear/ip/route/cache/node.tag/node.def index 37fc458..403e1f9 100644 --- a/templates/clear/ip/route/cache/node.tag/node.def +++ b/templates/clear/ip/route/cache/node.tag/node.def @@ -1,3 +1,3 @@ help: Flush the kernel route cache for a given route allowed: echo -n '<network>' -run: sudo ${vyatta_bindir}/sudo-users/ip route flush cache $5 +run: sudo ${vyatta_bindir}/sudo-users/ip route flush cache "$5" |