From 55223b58998e264ff0aaefe5f56f68fbbbe1c126 Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 14 Apr 2020 15:03:01 +0200 Subject: [PATCH] update 8.23 --- NeoBoot/plugin.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index eb1d9f4..8bfde13 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -532,7 +532,9 @@ class NeoBootInstallation(Screen): out3.write('NeoBoot\n') out3.write('NeoBoot-Version: ' + PLUGINVERSION + '\n') out3.close() - + + os.system('touch ' + LinkNeoBoot + '/files/%s' % getBoxHostName()) + if os.system('opkg update; opkg list-installed | grep python-subprocess') != 0: os.system('opkg install python-subprocess') if os.system('opkg list-installed | grep python-argparse') != 0: @@ -711,7 +713,7 @@ class NeoBootImageChoose(Screen): \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Format:%A %e %B %Y \t\t\t""" def __init__(self, session): - Screen.__init__(self, session) + Screen.__init__(self, session) if not fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'): os.system('touch ' + LinkNeoBoot + '/files/mountpoint.sh; echo "#!/bin/sh\n#DESCRIPTION=This script by gutosie\n" >> ' + LinkNeoBoot + '/files/mountpoint.sh; chmod 0755 ' + LinkNeoBoot + '/files/mountpoint.sh') if getNeoMount() == 'hdd_install_/dev/sda1': @@ -865,7 +867,7 @@ class NeoBootImageChoose(Screen): #if getBoxHostName == 'osmio4k': #os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p5 /media/mmc') - + self.list = [] self.setTitle(' NeoBoot %s - Menu' % PLUGINVERSION + ' ' + 'Ver. update: %s' % UPDATEVERSION) self['device_icon'] = Pixmap() @@ -920,7 +922,7 @@ class NeoBootImageChoose(Screen): if not fileExists('/etc/name'): os.system('touch /etc/name') self.onShow.append(self.updateList) - + def DownloadImageOnline(self): if not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/ImageDownloader/download.py'): message = _('[NeoBoot] Image Downloader - download plugin not installed!\nZainstalowac wtyczke do pobierania nowych image ? \n---Continue ?--- ' )