h4ck/lg_webOS/_ipk-building/busybox/source/etc/init.d/telnet
2016-11-23 15:42:51 -08:00

15 lines
325 B
Bash
Executable File

#!/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
}