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 --- scripts/telnetd.init | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'scripts/telnetd.init') 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 } -- cgit v1.2.3