Skip to content

Commit

Permalink
[enigma.sh]
Browse files Browse the repository at this point in the history
* fix gstreamer cache
* add support for new kodi standalone
  • Loading branch information
jbleyel committed Dec 1, 2024
1 parent 829229f commit 1399302
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/python/Screens/Standby.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
QUIT_UPGRADE_FP = 4
QUIT_ERROR_RESTART = 5
QUIT_DEBUG_RESTART = 6
QUIT_KODI = 15
QUIT_MAINT = 16
QUIT_UPGRADE_PROGRAM = 42
QUIT_IMAGE_RESTORE = 43
Expand Down Expand Up @@ -326,6 +327,7 @@ def __init__(self, session, retvalue=QUIT_SHUTDOWN):
QUIT_SHUTDOWN: _("Your %s %s is shutting down") % getBoxDisplayName(),
QUIT_REBOOT: _("Your %s %s is rebooting") % getBoxDisplayName(),
QUIT_RESTART: _("The user interface of your %s %s is restarting") % getBoxDisplayName(),
QUIT_KODI: _("The user interface of your %s %s will be stopped to run Kodi") % getBoxDisplayName(),
QUIT_UPGRADE_FP: _("Your front panel processor will be upgraded\nPlease wait until your %s %s reboots\nThis may take a few minutes") % getBoxDisplayName(),
QUIT_ERROR_RESTART: _("The user interface of your %s %s is restarting\ndue to an error in StartEnigma.py") % getBoxDisplayName(),
QUIT_MAINT: _("Your %s %s is rebooting into Recovery Mode") % getBoxDisplayName(),
Expand Down Expand Up @@ -378,7 +380,7 @@ def __init__(self, session, retvalue=QUIT_SHUTDOWN, timeout=-1, default_yes=True
clients = eStreamServer.getInstance().getConnectedClients()
if len(clients) == 1 and len(clients[0]) == 3 and clients[0][0] == "::ffff:127.0.0.1": # ignore internal streams
reason = ""
elif mediaFilesInUse(session) and retvalue in (QUIT_SHUTDOWN, QUIT_REBOOT, QUIT_RESTART, QUIT_UPGRADE_FP, QUIT_UPGRADE_PROGRAM, QUIT_UPGRADE_FRONTPANEL):
elif mediaFilesInUse(session) and retvalue in (QUIT_SHUTDOWN, QUIT_REBOOT, QUIT_KODI, QUIT_RESTART, QUIT_UPGRADE_FP, QUIT_UPGRADE_PROGRAM, QUIT_UPGRADE_FRONTPANEL):
reason = _("A file from media is in use!")
default_yes = False
timeout = 30
Expand All @@ -391,6 +393,7 @@ def __init__(self, session, retvalue=QUIT_SHUTDOWN, timeout=-1, default_yes=True
QUIT_SHUTDOWN: _("Really shutdown now?"),
QUIT_REBOOT: _("Really reboot now?"),
QUIT_RESTART: _("Really restart now?"),
QUIT_KODI: _("Really start Kodi and stop user interface now?"),
QUIT_UPGRADE_FP: _("Really upgrade the front panel processor and reboot now?"),
QUIT_MAINT: _("Really reboot into Recovery Mode?"),
QUIT_UPGRADE_PROGRAM: _("Really upgrade your %s %s and reboot now?") % getBoxDisplayName(),
Expand Down
7 changes: 6 additions & 1 deletion tools/enigma2.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ case $ret in
/sbin/reboot
;;
3)
rm -fR /home/root/.gstreamer-0.10
rm -fR /home/root/.cache/gstreamer-1.0
rm -f /tmp/.listen.camd.socket.ignore
;;
4)
Expand All @@ -287,6 +287,11 @@ case $ret in
[[ -e /etc/enigma2/.deep ]] && rm /etc/enigma2/.deep
/sbin/reboot
;;
15)
rm -fR /home/root/.cache/gstreamer-1.0
rm -f /tmp/.listen.camd.socket.ignore
/usr/bin/kodi
;;
16)
if [ -e /proc/stb/info/model ]; then
stbcheck=`cat /proc/stb/info/model`
Expand Down

0 comments on commit 1399302

Please sign in to comment.