This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |