summaryrefslogtreecommitdiff
path: root/scripts/telnetd.init
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 /scripts/telnetd.init
parentf0920480f03cd60681061a6bbb19fc70beb235dd (diff)
downloadvyatta-cfg-quagga-61f301fce041eb658d62579879ae6fb355b0cde7.tar.gz
vyatta-cfg-quagga-61f301fce041eb658d62579879ae6fb355b0cde7.zip
add telnet service
Diffstat (limited to 'scripts/telnetd.init')
-rwxr-xr-xscripts/telnetd.init17
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/telnetd.init b/scripts/telnetd.init
index 7afefb3d..b8368f03 100755
--- a/scripts/telnetd.init
+++ b/scripts/telnetd.init
@@ -3,21 +3,7 @@
declare progname=${0##*/}
declare action=$1; shift
-if [ x$BOOTFILE != x ] && [ -r $BOOTFILE ]; then
- may_start=false
- eval $(sed -n '
-/^service {$/,/^}$/ {
- / *telnet {$/,/ *}$/ {
- s/ *telnet {/may_start=true/p
- s/ *port: /port=/p
-}}' $BOOTFILE)
-else
- may_start=true
-fi
-
-if [ $# -ne 0 ] ; then
- port=$1; shift
-fi
+port=$1; shift
: ${port:=23}
: ${bb:=/bin/busybox}
@@ -41,7 +27,6 @@ start ()
local -i pid=$( running_pid )
[ $pid -ne 0 ] && return
- $may_start || return 0
$bb telnetd -p $port
}