summaryrefslogtreecommitdiff
path: root/templates/renew
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-28 16:44:08 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-28 16:48:51 -0800
commita32dc00e1e7437e07e70ad3024fd80a867ad06cf (patch)
treea61d107433d82e1d46091890d047f23c9b094c5d /templates/renew
parentcba9b407840026da532f9f57f14784b2a183d6a0 (diff)
downloadvyatta-op-a32dc00e1e7437e07e70ad3024fd80a867ad06cf.tar.gz
vyatta-op-a32dc00e1e7437e07e70ad3024fd80a867ad06cf.zip
Expand all possible interfaces with leases for renew
Also mark all scripts as executable.
Diffstat (limited to 'templates/renew')
-rw-r--r--templates/renew/dhcp/interface/node.tag/node.def6
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/renew/dhcp/interface/node.tag/node.def b/templates/renew/dhcp/interface/node.tag/node.def
index ab6494d..7705a83 100644
--- a/templates/renew/dhcp/interface/node.tag/node.def
+++ b/templates/renew/dhcp/interface/node.tag/node.def
@@ -1,7 +1,3 @@
help: Renew DHCP IP address lease for specified interface
-allowed:
- local -a array ;
- array=( /var/lib/dhcp3/eth* /var/lib/dhcp3/br* /var/lib/dhcp3/bond* ) ;
- echo -n ${array[@]##*/}
-
+allowed: /opt/vyatta/bin/show-dhcp-leases.pl
run: sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --dhcp renew --dev "$4"