Replies: 1 comment
-
Here is the watchdog script that im planning to rewrite #!/bin/bash
if [ ! $(dpkg --list | grep gnupg) ]; then
kodi-send --action="Notification(Downloading and installing Steamlink depenancies (gnupg)... ,3000)"
sudo apt update; sudo apt install gnupg -y
fi
if [ ! $(dpkg --list | grep curl) ]; then
kodi-send --action="Notification(Downloading and installing Steamlink depenancies (curl)... ,3000)"
sudo apt update; sudo apt install curl -y
fi
if [ ! "$(which steamlink)" = "" ]; then
kodi-send --action="Notification(Downloading and installing Steamlink Application... ,3000)"
curl -o /tmp/steamlink.deb -#Of http://media.steampowered.com/steamlink/rpi/latest/steamlink.deb
sudo dpkg -i /tmp/steamlink.deb
rm -f /tmp/steamlink.deb
fi
if ! grep -q "dtoverlay=vc4-fkms-v3d" /boot/config.txt; then
kodi-send --action="Notification(dtoverlay=vc4-fkms-v3d was missing from /boot/config.txt, however it has been added and now it will reboot. ,3000)"
echo "dtoverlay=vc4-fkms-v3d" >> /boot/config.txt
sleep 15
reboot
fi
if [ -f "/home/osmc/.wakeup" ]
then /usr/bin/wakeonlan "$(cat "/home/osmc/.wakeup")"
else sudo apt install wakeonlan -y; /usr/bin/wakeonlan "$(cat "/home/osmc/.wakeup")"
fi
systemctl stop mediacenter
if [ "$(systemctl is-active hyperion.service)" = "active" ]; then systemctl restart hyperion; fi
sudo -u osmc steamlink
openvt -c 7 -s -f clear
systemctl start mediacenter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So im starting to implement slowly new features using
kodi-send
and rechecking installation filesif you know how to beta test download and try it out and feedback into this thread
Beta Was this translation helpful? Give feedback.
All reactions