diff options
Diffstat (limited to 'package/base-files/default/etc/init.d/S50telnet')
-rwxr-xr-x | package/base-files/default/etc/init.d/S50telnet | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/default/etc/init.d/S50telnet b/package/base-files/default/etc/init.d/S50telnet index fb9687c8a..25242bdef 100755 --- a/package/base-files/default/etc/init.d/S50telnet +++ b/package/base-files/default/etc/init.d/S50telnet @@ -1,2 +1,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 |