summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/S50telnet
blob: 25242bdef87a568dcbbaa031c8aed0828889442e (plain)
1
2
3
4
#!/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