1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
6 local pwd=$
([ -f "$1" ] && cat "$1")
14 ( /etc
/init.d
/dropbear enabled
2> /dev
/null
&& grep -qs "^ssh-" /etc
/dropbear
/authorized_keys
) || \
15 ( /etc
/init.d
/sshd enabled
2> /dev
/null
&& grep -qs "^ssh-" /root
/.ssh
/authorized_keys
)
19 if ( ! has_ssh_pubkey
&& \
20 ! has_root_pwd
/etc
/passwd
&& ! has_root_pwd
/etc
/shadow
) || \
21 ( ! /etc
/init.d
/dropbear enabled
2> /dev
/null
&& ! /etc
/init.d
/sshd enabled
2> /dev
/null
);
23 telnetd
-l /bin
/login.sh
28 killall telnetd
2>/dev
/null
This page took 0.047897 seconds and 5 git commands to generate.