summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 15:22:02 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 15:22:02 -0700
commit61f301fce041eb658d62579879ae6fb355b0cde7 (patch)
tree687e79668ea661077a0a32b26394bd102bc9fe04 /templates/service
parentf0920480f03cd60681061a6bbb19fc70beb235dd (diff)
downloadvyatta-cfg-quagga-61f301fce041eb658d62579879ae6fb355b0cde7.tar.gz
vyatta-cfg-quagga-61f301fce041eb658d62579879ae6fb355b0cde7.zip
add telnet service
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/telnet/node.def4
-rw-r--r--templates/service/telnet/port/node.def3
2 files changed, 7 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/@)"
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"