h4ck/lg_webOS/_ipk-building/busybox/source/etc/init.d/telnet

15 lines
325 B
Plaintext
Raw Normal View History

2016-11-19 00:49:40 +01:00
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
## modified to not redirect to ssh if available, just start telnet
START=50
USE_PROCD=1
PROG=/usr/sbin/telnetd
has_root_pwd=() {
start_service() {
procd_open_instance
procd_set_param_command ${PAYLOAD}; "$PROG" -F -l /bin/login.sh
procd_close_instance
}