2019-04-26, 09:23 AM
Done.
follow this step: https://bre.is/CVB_1qr2R
Attention at step 5:
activate on sturt up
"In order to make the shutdown button 'active' when your Raspberry Pi starts up, you need to include it in an rc.local script.
Open a new terminal and type sudo nano /etc/rc.local
This will open the Leafpad editor, with the rc.local file loaded. At the end of the file (before exit 0 in the code) add the following:
sudo python3 /home/pi/shutdown.py &
Save the file and exit nano.
STEP 6
sudo chmod 755 shutdown.py
Reboot the system.
Thank you jim321 for the suggestions
follow this step: https://bre.is/CVB_1qr2R
Attention at step 5:
activate on sturt up
"In order to make the shutdown button 'active' when your Raspberry Pi starts up, you need to include it in an rc.local script.
Open a new terminal and type sudo nano /etc/rc.local
This will open the Leafpad editor, with the rc.local file loaded. At the end of the file (before exit 0 in the code) add the following:
sudo python3 /home/pi/shutdown.py &
Save the file and exit nano.
STEP 6
sudo chmod 755 shutdown.py
Reboot the system.
Thank you jim321 for the suggestions