From d9e410568b4d46621b5099ebad75828fc510f734 Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 6 Dec 2007 11:11:26 -0800 Subject: fix bug 2521 --- templates/telnet/node.tag/node.def | 10 +++++++--- templates/telnet/node.tag/node.tag/node.def | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/telnet/node.tag/node.def b/templates/telnet/node.tag/node.def index 5bcce24..f52266b 100644 --- a/templates/telnet/node.tag/node.def +++ b/templates/telnet/node.tag/node.def @@ -1,5 +1,9 @@ help: telnet to allowed: vyatta-allowed-hosts -run: test -x ${vyatta_sbindir}/telnet && - ${vyatta_sbindir}/telnet $2 $3 || - /usr/bin/telnet $2 $3 +run: if [ -x /usr/bin/telnet ] ; then + /usr/bin/$* + elif [ -x /bin/busybox ] ; then + /bin/busybox $* + else + echo telnet not found + fi diff --git a/templates/telnet/node.tag/node.tag/node.def b/templates/telnet/node.tag/node.tag/node.def index 4e0c65e..95bffe8 100644 --- a/templates/telnet/node.tag/node.tag/node.def +++ b/templates/telnet/node.tag/node.tag/node.def @@ -1,5 +1,9 @@ help: telnet to allowed: echo -n '' -run: test -x ${vyatta_sbindir}/telnet && - ${vyatta_sbindir}/telnet $2 $3 || - /usr/bin/telnet $2 $3 +run: if [ -x /usr/bin/telnet ] ; then + /usr/bin/$* + elif [ -x /bin/busybox ] ; then + /bin/busybox $* + else + echo telnet not found + fi -- cgit v1.2.3