Skip to content

Commit

Permalink
added wakeup on lan
Browse files Browse the repository at this point in the history
added wakeup on lan
  • Loading branch information
swetoast authored Aug 24, 2020
1 parent f198f79 commit da1ed4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugin.program.steamlink/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da1ed4b

Please sign in to comment.