#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50

start() {
	tel_port=$(uci -c /etc/config/grocx -q get vtss_fw.@basic[0].telnet_port)
	if [ "$tel_port" == "" -o "$tel_port" == "0" ]; then
		tel_port="23"
	fi
	telnetd -l /bin/login -p $tel_port
}

stop() {
	killall -9 telnetd
}
