rc.local 675 B

123456789101112131415161718192021
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. /etc/init.d/procps restart
  14. echo 'nameserver 8.8.8.8' > /etc/resolv.conf
  15. echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
  16. screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
  17. screen -AmdS ohp-dropbear ohpserver -port 3128 -proxy 127.0.0.1:8080 -tunnel 127.0.0.1:85
  18. screen -AmdS ohp-openvpn ohpserver -port 8000 -proxy 127.0.0.1:8080 -tunnel 127.0.0.1:1194
  19. script-1
  20. exit 0