diff options
Diffstat (limited to 'templates/service/telnet/node.def')
-rw-r--r-- | templates/service/telnet/node.def | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/service/telnet/node.def b/templates/service/telnet/node.def index 844aec98..a1cc9680 100644 --- a/templates/service/telnet/node.def +++ b/templates/service/telnet/node.def @@ -1,5 +1,5 @@ -help: "Enable/disable telnet protocol" -delete: " \ +help: Enable/disable telnet protocol +delete:expression: " \ if ! env | grep -q SSH_TTY=; then \ if [[ \"`tty`\" == /dev/pts/* ]]; then \ echo \"Please configure telnet settings via ssh or console.\"; \ @@ -7,12 +7,12 @@ delete: " \ fi; \ fi; \ sudo /opt/vyatta/sbin/telnetd.init stop" -end: " \ +end:expression: " \ if ! env | grep -q SSH_TTY=; then \ if [[ \"`tty`\" == /dev/pts/* ]]; then \ echo \"Please configure telnet settings via ssh or console.\"; \ exit 1; \ fi; \ fi; \ - if [ -z \"$(port/@)\" ]; then exit 0; fi; \ - sudo /opt/vyatta/sbin/telnetd.init restart $(port/@)" + if [ -z \"$VAR(port/@)\" ]; then exit 0; fi; \ + sudo /opt/vyatta/sbin/telnetd.init restart $VAR(port/@)" |