Advertisement
Guest User

Untitled

a guest
Dec 4th, 2011
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. /bin/echo "Boot on" $(date) >> /i-data/6764ac2f/admin/messages
  4.  
  5. if [ -x /usr/local/zy-pkgs/bin/dropbear ] && [ -f /usr/local/zy-pkgs/etc/dropbear_rsa_host_key ]; then
  6.  
  7.         if [ -d /i-data/6764ac2f/admin/.ssh ]; then
  8.                 /bin/cp -pr /i-data/6764ac2f/admin/.ssh /root/
  9.         fi
  10.  
  11.         /bin/echo -n "Starting Dropbear SSH..." >> /i-data/6764ac2f/admin/messages
  12.         /usr/local/zy-pkgs/bin/dropbear -r /usr/local/zy-pkgs/etc/dropbear_rsa_host_key -E -P
  13.  
  14.         if [ -f /var/run/dropbear.pid ]; then
  15.                 /bin/echo " Success! Running with PID" $(cat /var/run/dropbear.pid) >> /i-data/6764ac2f/admin/messages
  16.         else
  17.                 /bin/echo " NOT RUNNING!" >> /i-data/6764ac2f/admin/messages
  18.                 /sbin/setLED HDVOL4 RED BLINK
  19.         fi
  20. fi
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement