Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- /bin/echo "Boot on" $(date) >> /i-data/6764ac2f/admin/messages
- if [ -x /usr/local/zy-pkgs/bin/dropbear ] && [ -f /usr/local/zy-pkgs/etc/dropbear_rsa_host_key ]; then
- if [ -d /i-data/6764ac2f/admin/.ssh ]; then
- /bin/cp -pr /i-data/6764ac2f/admin/.ssh /root/
- fi
- /bin/echo -n "Starting Dropbear SSH..." >> /i-data/6764ac2f/admin/messages
- /usr/local/zy-pkgs/bin/dropbear -r /usr/local/zy-pkgs/etc/dropbear_rsa_host_key -E -P
- if [ -f /var/run/dropbear.pid ]; then
- /bin/echo " Success! Running with PID" $(cat /var/run/dropbear.pid) >> /i-data/6764ac2f/admin/messages
- else
- /bin/echo " NOT RUNNING!" >> /i-data/6764ac2f/admin/messages
- /sbin/setLED HDVOL4 RED BLINK
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement