Skip to content

Commit

Permalink
Generate two more VBSCRIPTs which wrapped up the two BATs and can be …
Browse files Browse the repository at this point in the history
…called in the ovpn conf file.
  • Loading branch information
fivesheep committed Jan 24, 2010
1 parent a05a56a commit 69e17e7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions chnroutes_ovpn_win
Expand Up @@ -41,3 +41,16 @@ for line in handler.readlines():

upfile.close()
downfile.close()


up_vbs_wrapper=open('vpnup.vbs','w')
up_vbs_wrapper.write('Set objShell = CreateObject("Wscript.shell")\ncall objShell.Run("vpnup.bat",0,FALSE)')
up_vbs_wrapper.close()
down_vbs_wrapper=open('vpndown.vbs','w')
down_vbs_wrapper.write('Set objShell = CreateObject("Wscript.shell")\ncall objShell.Run("vpndown.bat",0,FALSE)')
down_vbs_wrapper.close()

print "Usage: copy vpnup.bat vpnup.vbs vpndown.bat vpndown.vbs to the openvpn config dir," \
" and then append the following two lines to the ovpn config file:" \
"\n up vpnup.vbs" \
"\n down vpndown.vbs"

0 comments on commit 69e17e7

Please sign in to comment.