From 61f301fce041eb658d62579879ae6fb355b0cde7 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 31 Oct 2007 15:22:02 -0700 Subject: add telnet service --- templates/service/telnet/node.def | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 templates/service/telnet/node.def (limited to 'templates/service/telnet/node.def') 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/@)" -- cgit v1.2.3