diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/telnet/node.tag/node.tag/node.def | 8 |
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 |