Openwrt/openwrt/package/base-files/default/etc/init.d/S50telnet

5 lines
145 B
Plaintext
Raw Normal View History

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