Skip to content
Snippets Groups Projects
Commit a53aa71c authored by Florian Fainelli's avatar Florian Fainelli
Browse files

Do not run telnet if either dropbear or openssh server are running (#3839)

SVN-Revision: 12258
parent 0be07086
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ START=50 ...@@ -5,7 +5,7 @@ START=50
start() { start() {
if [ \! -f /etc/passwd ] || \ if [ \! -f /etc/passwd ] || \
awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \ awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
[ \! -x /usr/sbin/dropbear ] ( [ \! -x /usr/sbin/dropbear ] && [ \! -x /usr/sbin/sshd ] )
then \ then \
telnetd -l /bin/login telnetd -l /bin/login
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment