Skip to content

Instantly share code, notes, and snippets.

@sigboe
Created March 15, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigboe/972d5f94ad54bba9e89eff5e3e2173a6 to your computer and use it in GitHub Desktop.
Save sigboe/972d5f94ad54bba9e89eff5e3e2173a6 to your computer and use it in GitHub Desktop.
#!/bin/env bash
# adapted from diko_d scripts
# untested, made by ziggurat
if [[ "${1}" == "install" ]]; then
if grep -Fxq "kite-update.sh" /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml; then
kitesection=$(
cat <<_END_
<game>
<path>./kite-update.sh</path>
<name>Circuit-Gem Update</name>
<desc>Installs available updates to Kite's HUD software.</desc>
<image>./icons/kite.png</image>
</game>
_END_
)
wget -O "/home/pi/RetroPie/retropiemenu/icons/kite.png" "https://sudomod.com/forum/download/file.php?id=14616&sid=2e5f7e8dbe357a42a9dd1c4669a3dbb9"
sed -i "/\<\/gameList\>\n/a ${kitesection}" /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
fi
fi
if [[ -d "${HOME}/Circuit-Gem" ]]; then
sudo "${HOME}/Circuit-Gem/update.sh"
elif [[ -d "${HOME}/Circuit-Sword" ]]; then
sudo "${HOME}/Circuit-Sword/update.sh"
elif [[ -d "${HOME}/Circuit-Sword-Lite" ]]; then
sudo "${HOME}/Circuit-Sword-Lite/update.sh"
else
echo "It doesn't seam that Cirtcuit Sword drivers are installed."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment