From da1ed4b88f4a9912c9afa3799637d97f4706e2ec Mon Sep 17 00:00:00 2001 From: Toast Date: Mon, 24 Aug 2020 11:56:33 +0200 Subject: [PATCH] added wakeup on lan added wakeup on lan --- plugin.program.steamlink/addon.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugin.program.steamlink/addon.py b/plugin.program.steamlink/addon.py index ff1d636..6ae42ec 100644 --- a/plugin.program.steamlink/addon.py +++ b/plugin.program.steamlink/addon.py @@ -9,7 +9,7 @@ __url__ = "https://github.com/swetoast/steamlink-launcher/" __git_url__ = "https://github.com/swetoast/steamlink-launcher/" __credits__ = "toast" -__version__ = "0.0.6" +__version__ = "0.0.6a" dialog = xbmcgui.Dialog() addon = xbmcaddon.Addon(id='plugin.program.steamlink') @@ -51,6 +51,13 @@ def create_files(): dpkg -i /tmp/steamlink.deb rm -f /tmp/steamlink.deb fi + +if [ $(/usr/bin/dpkg-query '-W' -f='${Status}' wakeonlan 2>/dev/null | /bin/grep -c "ok installed") -eq 1 ]; then + if [ -f "$HOME/.wakeup" ]; then + /usr/bin/wakeonlan $(cat "$HOME/.wakeup") # create a .wakeup with your MAC id in home folder to wake up your computer + fi +fi + sudo -u osmc steamlink # Restart the graphical interface