Ejemplo n.º 1
0
 def get_config_file(self):
     config_file = __addon__.getSetting('config_file')
     if config_file == '':
         oe.notify('OpenVPN', 'No Configuration File Selected', icon='eth')
         oe.set_busy(0)
         exit(1)
     else:
         return config_file
 def get_config_file(self):
     config_file = __addon__.getSetting('config_file')
     if config_file == '':
         oe.notify('OpenVPN', 'No Configuration File Selected', icon='eth')
         oe.set_busy(0)
         exit(1)
     else:
         return config_file
Ejemplo n.º 3
0
 def main(self):
     oe.set_busy(1)
     if self.status():
         self.stop()
         self.start()
     oe.set_busy(0)
 def main(self):
     oe.set_busy(1)
     if self.status():
         self.stop()
         self.start()
     oe.set_busy(0)