Skip to content

Instantly share code, notes, and snippets.

@thodoris85
thodoris85 / README.txt
Last active July 22, 2021 20:51 — forked from Cyberek/README.txt
Starting Kodi automatically on Raspbian Jessie and Stretch
Autostart Kodi after installation (via "sudo apt-get install kodi kodi-peripheral-joystick kodi-pvr-iptvsimple kodi-inputstream-adaptive kodi-inputstream-rtmp kodi-vfs-libarchive -y")
sudo nano /etc/default/kodi
sudo nano /etc/init.d/kodi
Use the content from the files attached to this gist
Make /etc/default/kodi executable:
sudo chmod a+x /etc/init.d/kodi
if [ ! -w /var/www/html/admin/scripts/pi-hole/php/header.php ]; then
echo ROOT OR GTFO
fi
cd /var/www/html/admin || exit 1
cat <<'EOF' > pihole.uptime.patch
diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php
--- a/scripts/pi-hole/php/header.php
+++ b/scripts/pi-hole/php/header.php