openwrtv4/openwrt/package/base-files/default/etc/init.d/S50telnet
2006-06-27 00:36:13 +00:00

4 lines
145 B
Bash
Executable file

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
if awk -F: '/^root:/ && $2 !~ /\!/ {exit 1}' /etc/passwd 2>/dev/null; then telnetd -l /bin/login; fi