Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/system/bin/busybox sh
  2.  
  3. echo Content-type: text/html
  4. echo
  5. procss=`ps | grep openvpn-cli`
  6. if [ -n "$procss" ]; then
  7. echo Already running.
  8. else
  9. check=`cat /online/pass.txt | busybox sed -n '1p;2p'`
  10. if [ -n "$check" ]; then
  11. sleep 0
  12. else
  13. rm /online/pass.txt
  14. echo none >> /online/pass.txt
  15. echo none >> /online/pass.txt
  16. fi
  17. find=`find /online -name *.ovpn`
  18. if [ -n "$find" ]; then
  19. /app/bin/openvpn /online/config.ovpn &
  20. else
  21. echo Please upload OVPN Config first.
  22. fi
  23. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement