diff options
Diffstat (limited to 'templates/service/telnet/node.def')
-rw-r--r-- | templates/service/telnet/node.def | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/service/telnet/node.def b/templates/service/telnet/node.def new file mode 100644 index 00000000..5f4c1c7c --- /dev/null +++ b/templates/service/telnet/node.def @@ -0,0 +1,4 @@ +help: "Enable/disable telnet protocol" +delete: "sudo /opt/vyatta/sbin/telnetd.init stop" +end: "if [ -z \"$(port/@)\" ]; then exit 0; fi; \ + sudo /opt/vyatta/sbin/telnetd.init restart $(port/@)" |