Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/busybox sh
- echo Content-type: text/html
- echo
- procss=`ps | grep openvpn-cli`
- if [ -n "$procss" ]; then
- echo Already running.
- else
- check=`cat /online/pass.txt | busybox sed -n '1p;2p'`
- if [ -n "$check" ]; then
- sleep 0
- else
- rm /online/pass.txt
- echo none >> /online/pass.txt
- echo none >> /online/pass.txt
- fi
- find=`find /online -name *.ovpn`
- if [ -n "$find" ]; then
- /app/bin/openvpn /online/config.ovpn &
- else
- echo Please upload OVPN Config first.
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement