Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 919b0b0

Browse files
sam-crawleyswetoast
authored andcommitted
Added optional startup and shutdown scripts
1 parent 644f586 commit 919b0b0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plugin.program.steamlink/addon.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,19 @@ def create_files():
6262
then /usr/bin/wakeonlan "$(cat "/home/osmc/.wakeup")"
6363
else sudo apt install wakeonlan -y; /usr/bin/wakeonlan "$(cat "/home/osmc/.wakeup")"
6464
fi
65+
if [ -x "/home/osmc/steamlink/startup.sh" ]
66+
then sudo -u osmc /home/osmc/steamlink/startup.sh
67+
fi
68+
6569
systemctl stop mediacenter
6670
if [ "$(systemctl is-active hyperion.service)" = "active" ]; then systemctl restart hyperion; fi
6771
sudo -u osmc steamlink
6872
openvt -c 7 -s -f clear
73+
74+
if [ -x "/home/osmc/steamlink/shutdown.sh" ]
75+
then sudo -u osmc /home/osmc/steamlink/shutdown.sh
76+
fi
77+
6978
systemctl start mediacenter
7079
""")
7180
outfile.close()

0 commit comments

Comments
 (0)