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 ++++ templates/service/telnet/port/node.def | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 templates/service/telnet/node.def create mode 100644 templates/service/telnet/port/node.def (limited to 'templates') 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/@)" diff --git a/templates/service/telnet/port/node.def b/templates/service/telnet/port/node.def new file mode 100644 index 00000000..0232af83 --- /dev/null +++ b/templates/service/telnet/port/node.def @@ -0,0 +1,3 @@ +type: u32 +default: 23 +help: "Port for telnet service" -- cgit v1.2.3