def checkVPNInstall(addon):
# Check that openvpn plugin exists (this was an issue with OE6), there's
# another check below that validates that the command actually works
if not fakeConnection():
p = getPlatform()
dialog_msg = ""
if p == platforms.RPI:
command_path = getAddonPath(False, "network.openvpn/bin/openvpn")
if xbmcvfs.exists(command_path):
# Check the version that's installed
vpn_addon = xbmcaddon.Addon("network.openvpn")
version = vpn_addon.getAddonInfo("version")
version = version.replace(".", "")
if int(version) >= 600: return True
dialog_msg = "OpenVPN executable not available. Install the openvpn plugin, version 6.0.1 or greater from the OpenELEC unofficial repo."
# Display error message
xbmcgui.Dialog().ok(addon.getAddonInfo("name"), dialog_msg)
return True
评论列表
文章目录