diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 15:22:02 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 15:22:02 -0700 |
commit | 61f301fce041eb658d62579879ae6fb355b0cde7 (patch) | |
tree | 687e79668ea661077a0a32b26394bd102bc9fe04 /scripts/telnetd.init | |
parent | f0920480f03cd60681061a6bbb19fc70beb235dd (diff) | |
download | vyatta-cfg-system-61f301fce041eb658d62579879ae6fb355b0cde7.tar.gz vyatta-cfg-system-61f301fce041eb658d62579879ae6fb355b0cde7.zip |
add telnet service
Diffstat (limited to 'scripts/telnetd.init')
-rwxr-xr-x | scripts/telnetd.init | 17 |
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 } |