mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
service.openelec.settings: update to service.openelec.settings-0.2.10
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
783ac7e7e2
commit
b8066aa1e3
@ -19,7 +19,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="service.openelec.settings"
|
PKG_NAME="service.openelec.settings"
|
||||||
PKG_VERSION="0.2.8"
|
PKG_VERSION="0.2.10"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="prop."
|
PKG_LICENSE="prop."
|
||||||
|
@ -1,182 +0,0 @@
|
|||||||
From 60dbecad2610d4cc40b48b306d41034221b80e4b Mon Sep 17 00:00:00 2001
|
|
||||||
From: lfiebach <lutz@fiebach.de>
|
|
||||||
Date: Tue, 20 Aug 2013 08:31:02 +0200
|
|
||||||
Subject: [PATCH 1/3] fix oe.execute() and service startup
|
|
||||||
|
|
||||||
---
|
|
||||||
addon.xml | 2 +-
|
|
||||||
changelog.txt | 4 ++++
|
|
||||||
oe.py | 17 +++++++++++------
|
|
||||||
resources/lib/modules/connman.py | 2 +-
|
|
||||||
4 files changed, 17 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/addon.xml b/addon.xml
|
|
||||||
index f2b5b16..13a5fec 100755
|
|
||||||
--- a/addon.xml
|
|
||||||
+++ b/addon.xml
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<addon id="service.openelec.settings"
|
|
||||||
name="OpenELEC Configuration"
|
|
||||||
- version="0.2.8"
|
|
||||||
+ version="0.2.9"
|
|
||||||
provider-name="OpenELEC">
|
|
||||||
<requires>
|
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
|
||||||
diff --git a/changelog.txt b/changelog.txt
|
|
||||||
index c2beb90..2590337 100755
|
|
||||||
--- a/changelog.txt
|
|
||||||
+++ b/changelog.txt
|
|
||||||
@@ -1,3 +1,7 @@
|
|
||||||
+2013-08-20 v0.2.9
|
|
||||||
+ (fix) wait for execute to close
|
|
||||||
+ (fix) dont restart services (SYSTEMD) on startup
|
|
||||||
+
|
|
||||||
2013-08-19 v0.2.8
|
|
||||||
(change) move service configs to .cache/settings/*.conf
|
|
||||||
|
|
||||||
diff --git a/oe.py b/oe.py
|
|
||||||
index d3db4b4..3d73151 100755
|
|
||||||
--- a/oe.py
|
|
||||||
+++ b/oe.py
|
|
||||||
@@ -116,8 +116,8 @@ def _(code):
|
|
||||||
return __addon__.getLocalizedString(code)
|
|
||||||
|
|
||||||
def dbg_log(source, text, level=4):
|
|
||||||
- if os.environ.get('DEBUG', 'no') == 'no':
|
|
||||||
- return
|
|
||||||
+ #if os.environ.get('DEBUG', 'no') == 'no':
|
|
||||||
+ # return
|
|
||||||
|
|
||||||
xbmc.log('## OpenELEC Addon ## ' + source + ' ## ' + text, level)
|
|
||||||
xbmc.log(traceback.format_exc())
|
|
||||||
@@ -177,7 +177,8 @@ def execute(command_line, get_result=0):
|
|
||||||
shell=True,
|
|
||||||
close_fds=True)
|
|
||||||
|
|
||||||
- return process.pid
|
|
||||||
+ process.wait()
|
|
||||||
+
|
|
||||||
else:
|
|
||||||
result = ''
|
|
||||||
process = subprocess.Popen(command_line,
|
|
||||||
@@ -185,6 +186,9 @@ def execute(command_line, get_result=0):
|
|
||||||
close_fds=True,
|
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
stderr=subprocess.STDOUT)
|
|
||||||
+
|
|
||||||
+ process.wait()
|
|
||||||
+
|
|
||||||
for line in process.stdout.readlines():
|
|
||||||
result = result + line
|
|
||||||
|
|
||||||
@@ -300,9 +304,10 @@ def set_service(service, options, state):
|
|
||||||
if os.path.exists(cfo):
|
|
||||||
os.rename(cfo, cfn)
|
|
||||||
|
|
||||||
- if service in defaults._services:
|
|
||||||
- for svc in defaults._services[service]:
|
|
||||||
- execute("systemctl restart %s" % svc)
|
|
||||||
+ if not __oe__.is_service:
|
|
||||||
+ if service in defaults._services:
|
|
||||||
+ for svc in defaults._services[service]:
|
|
||||||
+ execute("systemctl restart %s" % svc)
|
|
||||||
|
|
||||||
dbg_log('oe::set_service', 'exit_function')
|
|
||||||
except Exception, e:
|
|
||||||
diff --git a/resources/lib/modules/connman.py b/resources/lib/modules/connman.py
|
|
||||||
index 4d2cf73..a91611f 100755
|
|
||||||
--- a/resources/lib/modules/connman.py
|
|
||||||
+++ b/resources/lib/modules/connman.py
|
|
||||||
@@ -1715,7 +1715,6 @@ def do_init(self):
|
|
||||||
self.oe.dbg_log('connman::do_init', 'enter_function', 0)
|
|
||||||
|
|
||||||
self.visible = True
|
|
||||||
- self.load_values()
|
|
||||||
|
|
||||||
self.oe.dbg_log('connman::do_init', 'exit_function', 0)
|
|
||||||
except Exception, e:
|
|
||||||
@@ -2533,6 +2532,7 @@ def start_service(self):
|
|
||||||
self.oe.dbg_log('connman::start_service', 'enter_function',
|
|
||||||
0)
|
|
||||||
|
|
||||||
+ self.load_values()
|
|
||||||
self.mount_drives()
|
|
||||||
|
|
||||||
self.oe.dbg_log('connman::start_service', 'exit_function',
|
|
||||||
--
|
|
||||||
1.8.1.6
|
|
||||||
|
|
||||||
|
|
||||||
From 3fb2e3dcb86a6aeb5492fe85baba6f78ea874456 Mon Sep 17 00:00:00 2001
|
|
||||||
From: lufi <lutz@fiebach.de>
|
|
||||||
Date: Tue, 20 Aug 2013 08:32:43 +0200
|
|
||||||
Subject: [PATCH 2/3] Update oe.py
|
|
||||||
|
|
||||||
---
|
|
||||||
oe.py | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/oe.py b/oe.py
|
|
||||||
index 3d73151..32d7d22 100755
|
|
||||||
--- a/oe.py
|
|
||||||
+++ b/oe.py
|
|
||||||
@@ -116,8 +116,8 @@ def _(code):
|
|
||||||
return __addon__.getLocalizedString(code)
|
|
||||||
|
|
||||||
def dbg_log(source, text, level=4):
|
|
||||||
- #if os.environ.get('DEBUG', 'no') == 'no':
|
|
||||||
- # return
|
|
||||||
+ if os.environ.get('DEBUG', 'no') == 'no':
|
|
||||||
+ return
|
|
||||||
|
|
||||||
xbmc.log('## OpenELEC Addon ## ' + source + ' ## ' + text, level)
|
|
||||||
xbmc.log(traceback.format_exc())
|
|
||||||
--
|
|
||||||
1.8.1.6
|
|
||||||
|
|
||||||
|
|
||||||
From 529542f8c2edf71412b0329460a7e76d895a58bf Mon Sep 17 00:00:00 2001
|
|
||||||
From: lufi <lutz@fiebach.de>
|
|
||||||
Date: Tue, 20 Aug 2013 22:24:21 +0200
|
|
||||||
Subject: [PATCH 3/3] hide syslog in systemd
|
|
||||||
|
|
||||||
---
|
|
||||||
resources/lib/modules/services.py | 21 +++++++++++----------
|
|
||||||
1 file changed, 11 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/resources/lib/modules/services.py b/resources/lib/modules/services.py
|
|
||||||
index d4d96a6..eef7248 100755
|
|
||||||
--- a/resources/lib/modules/services.py
|
|
||||||
+++ b/resources/lib/modules/services.py
|
|
||||||
@@ -469,16 +469,17 @@ def load_values(self):
|
|
||||||
else:
|
|
||||||
self.struct['cron']['hidden'] = 'true'
|
|
||||||
|
|
||||||
- #SYSLOG
|
|
||||||
- if os.path.isfile(self.SYSLOG_DAEMON):
|
|
||||||
- self.struct['syslog']['settings']['syslog_remote']['value'] = \
|
|
||||||
- self.oe.get_service_option('syslogd', 'SYSLOG_REMOTE',
|
|
||||||
- self.D_SYSLOG_REMOTE).replace('true','1').replace('false','0').replace('"', '')
|
|
||||||
- self.struct['syslog']['settings']['syslog_server']['value'] = \
|
|
||||||
- self.oe.get_service_option('syslogd', 'SYSLOG_SERVER',
|
|
||||||
- self.D_SYSLOG_SERVER).replace('"', '')
|
|
||||||
- else:
|
|
||||||
- self.struct['syslog']['hidden'] = 'true'
|
|
||||||
+ #SYSLOG
|
|
||||||
+ self.struct['syslog']['hidden'] = 'true'
|
|
||||||
+ #if os.path.isfile(self.SYSLOG_DAEMON):
|
|
||||||
+ # self.struct['syslog']['settings']['syslog_remote']['value'] = \
|
|
||||||
+ # self.oe.get_service_option('syslogd', 'SYSLOG_REMOTE',
|
|
||||||
+ # self.D_SYSLOG_REMOTE).replace('true','1').replace('false','0').replace('"', '')
|
|
||||||
+ # self.struct['syslog']['settings']['syslog_server']['value'] = \
|
|
||||||
+ # self.oe.get_service_option('syslogd', 'SYSLOG_SERVER',
|
|
||||||
+ # self.D_SYSLOG_SERVER).replace('"', '')
|
|
||||||
+ #else:
|
|
||||||
+ # self.struct['syslog']['hidden'] = 'true'
|
|
||||||
|
|
||||||
#BLUEZ / OBEX
|
|
||||||
if 'bluetooth' in self.oe.dictModules:
|
|
||||||
--
|
|
||||||
1.8.1.6
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user