Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/2.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hornsby committed May 18, 2014
2 parents 286ba6b + a733e92 commit 3ef9ac8
Show file tree
Hide file tree
Showing 256 changed files with 389 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.openvpn" name="OpenVPN" version="2.0.1" provider-name="brianhornsby">
<addon id="script.openvpn" name="OpenVPN" version="2.1.0" provider-name="brianhornsby">
<requires>
<import addon="xbmc.python" version="2.0"/>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.beautifulsoup" version="3.0.8"/>
</requires>
<extension point="xbmc.python.script" library="default.py"/>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*** 2.1.0 ***
Updated xbmc.python version. Fixed issue with reading running OpenVPN configuration on OpenELEC. [0e132c6]
Changed country flag images to https://github.com/koppi/iso-country-flags-svg-collection. [3dc6b7e]

*** 2.0.1 ***
Fixes for issues #8 and #9.

Expand Down
6 changes: 3 additions & 3 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def log_error(msg):

log_debug('OpenVPN: [%s]' % _openvpn)
log_debug('Userdata: [%s]' % _userdata)
log_debug('OpenVPN IP: [%s]' % _ip)
log_debug('OpenVPN Port: [%d]' % _port)
log_debug('Additional OpenVPN Arguments: [%s]' % _args)
log_debug('OpenVPN Management Interface IP: [%s]' % _ip)
log_debug('OpenVPN Management Interface Port: [%d]' % _port)
log_debug('OpenVPN Additional Arguments: [%s]' % _args)
log_debug('Sudo: [%s]' % _sudo)
if _sudo:
log_debug('Sudo Password Required: [%s]' % _sudopwdrequired)
Expand Down
Binary file modified resources/images/ad.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/ae.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/af.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/ag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ai.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/al.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/am.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ao.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/aq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ar.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/as.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/at.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/au.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/aw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/ax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/az.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/ba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bb.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bd.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/be.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/bf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bg.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bh.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/bi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/bj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/bl.png
Binary file added resources/images/bm.png
Binary file modified resources/images/bn.png
100755 → 100644
Binary file modified resources/images/bo.png
100755 → 100644
Binary file added resources/images/bq.png
Binary file modified resources/images/br.png
100755 → 100644
Binary file added resources/images/bs.png
Binary file added resources/images/bt.png
Binary file added resources/images/bv.png
Binary file modified resources/images/bw.png
100755 → 100644
Binary file modified resources/images/by.png
100755 → 100644
Binary file modified resources/images/bz.png
100755 → 100644
Binary file modified resources/images/ca.png
100755 → 100644
Binary file added resources/images/cc.png
Binary file added resources/images/cd.png
Binary file added resources/images/cf.png
Binary file added resources/images/cg.png
Binary file modified resources/images/ch.png
100755 → 100644
Binary file added resources/images/ci.png
Binary file added resources/images/ck.png
Binary file modified resources/images/cl.png
100755 → 100644
Binary file modified resources/images/cm.png
100755 → 100644
Binary file modified resources/images/cn.png
100755 → 100644
Binary file modified resources/images/co.png
100755 → 100644
Binary file added resources/images/cr.png
Binary file modified resources/images/cu.png
100755 → 100644
Binary file added resources/images/cv.png
Binary file added resources/images/cw.png
Binary file added resources/images/cx.png
Binary file modified resources/images/cy.png
100755 → 100644
Binary file added resources/images/cz.png
Binary file modified resources/images/de.png
100755 → 100644
Binary file added resources/images/dj.png
Binary file added resources/images/dk.png
Binary file added resources/images/dm.png
Binary file added resources/images/do.png
Binary file modified resources/images/dz.png
100755 → 100644
Binary file modified resources/images/ec.png
100755 → 100644
Binary file added resources/images/ee.png
Binary file modified resources/images/eg.png
100755 → 100644
Binary file added resources/images/eh.png
Binary file added resources/images/er.png
Binary file modified resources/images/es.png
100755 → 100644
Binary file modified resources/images/et.png
100755 → 100644
Binary file modified resources/images/fi.png
100755 → 100644
Binary file modified resources/images/fj.png
100755 → 100644
Binary file added resources/images/fk.png
Binary file added resources/images/fm.png
Binary file added resources/images/fo.png
Binary file modified resources/images/fr.png
100755 → 100644
Binary file modified resources/images/ga.png
100755 → 100644
Binary file modified resources/images/gb.png
Binary file added resources/images/gd.png
Binary file modified resources/images/ge.png
100755 → 100644
Binary file added resources/images/gf.png
Binary file added resources/images/gg.png
Binary file modified resources/images/gh.png
100755 → 100644
Binary file modified resources/images/gi.png
100755 → 100644
Binary file modified resources/images/gl.png
100755 → 100644
Binary file modified resources/images/gm.png
100755 → 100644
Binary file modified resources/images/gn.png
100755 → 100644
Binary file added resources/images/gp.png
Binary file added resources/images/gq.png
Binary file modified resources/images/gr.png
100755 → 100644
Binary file added resources/images/gs.png
Binary file modified resources/images/gt.png
100755 → 100644
Binary file added resources/images/gu.png
Binary file added resources/images/gw.png
Binary file modified resources/images/gy.png
100755 → 100644
Binary file added resources/images/hk.png
Binary file added resources/images/hm.png
Binary file modified resources/images/hn.png
100755 → 100644
Binary file added resources/images/hr.png
Binary file modified resources/images/ht.png
100755 → 100644
Binary file modified resources/images/hu.png
100755 → 100644
Binary file modified resources/images/id.png
100755 → 100644
Binary file modified resources/images/ie.png
100755 → 100644
Binary file modified resources/images/il.png
100755 → 100644
Binary file added resources/images/im.png
Binary file modified resources/images/in.png
100755 → 100644
371 changes: 371 additions & 0 deletions resources/images/index.html

Large diffs are not rendered by default.

Binary file added resources/images/io.png
Binary file modified resources/images/iq.png
100755 → 100644
Binary file modified resources/images/ir.png
100755 → 100644
Binary file modified resources/images/is.png
100755 → 100644
Binary file modified resources/images/it.png
100755 → 100644
Binary file added resources/images/je.png
Binary file modified resources/images/jm.png
100755 → 100644
Binary file modified resources/images/jo.png
100755 → 100644
Binary file modified resources/images/jp.png
100755 → 100644
Binary file modified resources/images/ke.png
100755 → 100644
Binary file modified resources/images/kg.png
100755 → 100644
Binary file modified resources/images/kh.png
100755 → 100644
Binary file added resources/images/ki.png
Binary file added resources/images/km.png
Binary file added resources/images/kn.png
Binary file added resources/images/kp.png
Binary file added resources/images/kr.png
Binary file modified resources/images/kw.png
100755 → 100644
Binary file added resources/images/ky.png
Binary file modified resources/images/kz.png
100755 → 100644
Binary file modified resources/images/la.png
100755 → 100644
Binary file modified resources/images/lb.png
100755 → 100644
Binary file added resources/images/lc.png
Binary file modified resources/images/li.png
100755 → 100644
Binary file added resources/images/lk.png
Binary file modified resources/images/lr.png
100755 → 100644
Binary file added resources/images/ls.png
Binary file modified resources/images/lt.png
100755 → 100644
Binary file modified resources/images/lu.png
100755 → 100644
Binary file modified resources/images/lv.png
100755 → 100644
Binary file modified resources/images/ly.png
100755 → 100644
Binary file modified resources/images/ma.png
100755 → 100644
Binary file modified resources/images/mc.png
100755 → 100644
Binary file added resources/images/md.png
Binary file added resources/images/me.png
Binary file added resources/images/mf.png
Binary file modified resources/images/mg.png
100755 → 100644
Binary file added resources/images/mh.png
Binary file added resources/images/mk.png
Binary file modified resources/images/ml.png
100755 → 100644
Binary file added resources/images/mm.png
Binary file added resources/images/mn.png
Binary file modified resources/images/mo.png
100755 → 100644
Binary file added resources/images/mp.png
Binary file added resources/images/mq.png
Binary file modified resources/images/mr.png
100755 → 100644
Binary file added resources/images/ms.png
Binary file modified resources/images/mt.png
100755 → 100644
Binary file modified resources/images/mu.png
100755 → 100644
Binary file added resources/images/mv.png
Binary file modified resources/images/mw.png
100755 → 100644
Binary file modified resources/images/mx.png
100755 → 100644
Binary file added resources/images/my.png
Binary file added resources/images/mz.png
Binary file modified resources/images/na.png
100755 → 100644
Binary file added resources/images/nc.png
Binary file modified resources/images/ne.png
100755 → 100644
Binary file added resources/images/nf.png
Binary file modified resources/images/ng.png
100755 → 100644
Binary file modified resources/images/ni.png
100755 → 100644
Binary file modified resources/images/nl.png
100755 → 100644
Binary file modified resources/images/no.png
100755 → 100644
Binary file modified resources/images/np.png
100755 → 100644
Binary file added resources/images/nr.png
Binary file added resources/images/nu.png
Binary file added resources/images/nz.png
Binary file modified resources/images/om.png
100755 → 100644
Binary file modified resources/images/pa.png
100755 → 100644
Binary file modified resources/images/pe.png
100755 → 100644
Binary file added resources/images/pf.png
Binary file added resources/images/pg.png
Binary file modified resources/images/ph.png
100755 → 100644
Binary file modified resources/images/pk.png
100755 → 100644
Binary file modified resources/images/pl.png
100755 → 100644
Binary file added resources/images/pm.png
Binary file added resources/images/pn.png
Binary file added resources/images/pr.png
Binary file added resources/images/ps.png
Binary file modified resources/images/pt.png
100755 → 100644
Binary file modified resources/images/pw.png
100755 → 100644
Binary file modified resources/images/py.png
100755 → 100644
Binary file modified resources/images/qa.png
100755 → 100644
Binary file added resources/images/re.png
Binary file modified resources/images/ro.png
100755 → 100644
Binary file added resources/images/rs.png
Binary file added resources/images/ru.png
Binary file added resources/images/rw.png
Binary file added resources/images/sa.png
Binary file added resources/images/sb.png
Binary file added resources/images/sc.png
Binary file modified resources/images/sd.png
100755 → 100644
Binary file modified resources/images/se.png
100755 → 100644
Binary file modified resources/images/sg.png
100755 → 100644
Binary file added resources/images/sh.png
Binary file modified resources/images/si.png
100755 → 100644
Binary file added resources/images/sj.png
Binary file modified resources/images/sk.png
100755 → 100644
Binary file added resources/images/sl.png
Binary file added resources/images/sm.png
Binary file modified resources/images/sn.png
100755 → 100644
Binary file added resources/images/so.png
Binary file modified resources/images/sr.png
100755 → 100644
Binary file added resources/images/ss.png
Binary file added resources/images/st.png
Binary file added resources/images/sv.png
Binary file added resources/images/sx.png
Binary file modified resources/images/sy.png
100755 → 100644
Binary file modified resources/images/sz.png
100755 → 100644
Binary file added resources/images/tc.png
Binary file modified resources/images/td.png
100755 → 100644
Binary file added resources/images/tf.png
Binary file added resources/images/tg.png
Binary file modified resources/images/th.png
100755 → 100644
Binary file added resources/images/tj.png
Binary file added resources/images/tk.png
Binary file added resources/images/tl.png
Binary file added resources/images/tm.png
Binary file modified resources/images/tn.png
100755 → 100644
Binary file added resources/images/to.png
Binary file modified resources/images/tr.png
100755 → 100644
Binary file added resources/images/tt.png
Binary file added resources/images/tv.png
Binary file modified resources/images/tw.png
100755 → 100644
Binary file modified resources/images/tz.png
100755 → 100644
Binary file modified resources/images/ua.png
100755 → 100644
Binary file modified resources/images/ug.png
100755 → 100644
Binary file removed resources/images/uk.png
Diff not rendered.
Binary file added resources/images/um.png
Binary file modified resources/images/us.png
Binary file modified resources/images/uy.png
100755 → 100644
Binary file modified resources/images/uz.png
100755 → 100644
Binary file added resources/images/va.png
Binary file added resources/images/vc.png
Binary file modified resources/images/ve.png
100755 → 100644
Binary file added resources/images/vg.png
Binary file added resources/images/vi.png
Binary file added resources/images/vn.png
Binary file modified resources/images/vu.png
100755 → 100644
Binary file added resources/images/wf.png
Binary file added resources/images/ws.png
Binary file modified resources/images/ye.png
100755 → 100644
Binary file added resources/images/yt.png
Binary file added resources/images/za.png
Binary file modified resources/images/zm.png
100755 → 100644
Binary file modified resources/images/zw.png
100755 → 100644
Binary file added resources/images/zz.png
10 changes: 9 additions & 1 deletion resources/lib/openvpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ def is_running(ip, port):
output = cmdline.split('--config')
if len(output) > 1:
config = output[1].lstrip().split('--')[0].rstrip()
else:
cmdline = 'ps | grep -w %d | grep -vw grep' % pid
ps = subprocess.Popen(cmdline, shell=True, stdout=subprocess.PIPE)
cmdline = ps.stdout.read()
ps.stdout.close()
output = cmdline.split('--config')
if len(output) > 1:
config = output[1].lstrip().split('--')[0].rstrip()

data = interface.receive().split(',')
if len(data) > 1:
state = data[1]
Expand Down Expand Up @@ -201,4 +210,3 @@ def connect(self):
2, 'Unable to connect to OpenVPN management interface')

self._log_debug('Connect OpenVPN successful')
# self.interface.send('hold release\n')

0 comments on commit 3ef9ac8

Please sign in to comment.