Advertisement
geofferey

[BASH] - Example of Loading Variables From File

Oct 23rd, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/system/xbin/bash
  2.  
  3. #This scripts starts a dropbear damon on an Android device
  4.  
  5. #This first line loads variables from file
  6. . /system/etc/sshd.conf
  7.  
  8. cd /system/exbin
  9.  
  10. ./dropbear -A -N root -U 0 -G 0 -C "$PASS" -p "$PORT"
  11.  
  12. echo "Check if Dropbear is running..."
  13.  
  14. echo ""
  15.  
  16. ps | grep dropbear
  17.  
  18. echo ""
  19.  
  20. echo "done"
  21.  
  22. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement