I need a script or plugin to execute"systemctl stop oscam_11704" command with the Dreambox remote(OS2.5)
I found a script but it's from an old thread and I don't know whether compatible
Don't need a cronjob as I need it once a week or so.
(reason:half of clients suddenly off......restored by this command)
/usr/lib/enigma2/python/Plugins/Extensions/ExecuteMyScript/plugin.py
Python
Python
from Plugins.Plugin import PluginDescriptor
from Screens.Console import Console
cmd = "/usr/script/ExecuteMyScript.sh"
def main(session, **kwargs): session.open(Console,_("ExcuteMyScript.sh"),[cmd])
def Plugins(**kwargs): return [PluginDescriptor(name="Execute My Script", description=_("execute /usr/script/ExcuteMyScript.sh"), where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main), PluginDescriptor(name="Execute My Script", description=_("execute /usr/script/ExcuteMyScript.sh"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]
+ an empty folder: __init__.py is needed
Display More