Skip to content

Commit

Permalink
Add libcrypto and libssl symlinks to backup
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylicious committed Mar 19, 2024
1 parent 84e5b03 commit 5b3624b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import date
from os import listdir, makedirs
from os import path as os_path
from os import popen, remove, rename, stat
from os import popen, remove, rename, stat, mkdir

from boxbranding import (getBoxType, getImageDistro, getMachineBrand,
getMachineName)
Expand Down Expand Up @@ -67,6 +67,8 @@ def InitConfig():
'/usr/lib/enigma2/python/Plugins/Extensions/TVSpielfilm/db', '/etc/ConfFS',
'/etc/rc3.d/S99tuner.sh',
'/usr/bin/enigma2_pre_start.sh',
'/usr/lib/libssl.so.0.9.8',
'/usr/lib/libcrypto.so.0.9.8',
eEnv.resolve("${datadir}/enigma2/keymap.usr"),
eEnv.resolve("${datadir}/enigma2/keymap_usermod.xml")]\
+ eEnv_resolve_multi("${datadir}/enigma2/*/skin_user_*.xml")\
Expand Down Expand Up @@ -467,6 +469,7 @@ def doRestore(self):
restorecmdlist.append("/etc/init.d/autofs restart")

self.session.open(Console, title=_("Restoring..."), cmdlist=restorecmdlist, finishedCallback=self.restoreFinishedCB)
self.createSkinRestoreFile()

def restoreFinishedCB(self, retval=None):
ShellCompatibleFunctions.restoreUserDB(image_dir=self.image_dir)
Expand Down Expand Up @@ -524,11 +527,13 @@ def writeScript(self):

def createSkinRestoreFile(self):
try:
skinrestorefile = "/media/hdd/images/skinrestore"
skinrestorefile = "%setc/enigma2/xionrestore" % self.image_dir
from Tools.Directories import fileExists
if fileExists(skinrestorefile):
print("[SkinRestore]: Skinrestorefile exists")
else:
if not os_path.exists("%setc/enigma2/" % self.image_dir):
mkdir("%setc/enigma2/" % self.image_dir)
open(skinrestorefile, 'a').close()
print("[SkinRestore]: Skinrestorefile created")
except:
Expand Down

0 comments on commit 5b3624b

Please sign in to comment.