PiHole and Pi Padd

Here's the /etc/rc.local file

login as: pi [email protected]'s password:

The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Nov 3 13:33:48 2018 [email protected]:~ $ cd etc/kbd -bash: cd: etc/kbd: No such file or directory [email protected]:~ $ cd /etc/kbd [email protected]:/etc/kbd $ ls config remap [email protected]:/etc/kbd $ sudo nano config [email protected]:/etc/kbd $ sudo nano config [email protected]:/etc/kbd $ sudo nano config [email protected]:/etc/kbd $ cd [email protected]:~ $ cd /etc/rc.local -bash: cd: /etc/rc.local: Not a directory [email protected]:~ $ sudo nano /etc/rc.local GNU nano 2.2.6 File: /etc/rc.local

!/bin/sh -e

rc.local

This script is executed at the end of each multiuser runlevel.

Make sure that the script will "exit 0" on success or any other

value on error.

In order to enable or disable this script just change the execution

bits.

By default this script does nothing.

Print the IP address

_IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi

disable console blanking on PiTFT

sudo sh -c "TERM=linux setterm -blank 0 >/dev/tty0" exit 0 sudo python /home/pi/scripts/shutdown.py &

/r/pihole Thread Parent