summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-11-21 12:54:15 -0800
committerTom Grennan <tgrennan@vyatta.com>2007-11-21 12:54:15 -0800
commite7fd4dc96fbd4cb795ebb89b03d8a499fa5a184c (patch)
treefa0e1dad7989b8272c173b334e2b85452266a32a /templates
parent4872ac2b9f0736d282877f45eaf0c075b4f0d587 (diff)
downloadvyatta-op-e7fd4dc96fbd4cb795ebb89b03d8a499fa5a184c.tar.gz
vyatta-op-e7fd4dc96fbd4cb795ebb89b03d8a499fa5a184c.zip
allow <port|service> and fix path if vyatta-system not installed
Diffstat (limited to 'templates')
-rw-r--r--templates/telnet/node.tag/node.tag/node.def8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/telnet/node.tag/node.tag/node.def b/templates/telnet/node.tag/node.tag/node.def
index 8d37740..84c5afb 100644
--- a/templates/telnet/node.tag/node.tag/node.def
+++ b/templates/telnet/node.tag/node.tag/node.def
@@ -1,3 +1,5 @@
-help: telnet to <host> <port>
-allowed:
-run: shift; ${vyatta_sbindir}/telnet $*
+help: telnet to <hostname|address> <port|service>
+allowed: echo -n PORT SERVICE
+run: test -x ${vyatta_sbindir}/telnet &&
+ ${vyatta_sbindir}/telnet $2 $3 ||
+ /usr/bin/telnet $2 $3