This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shutdown procedures
#2
It'd be pretty simple to create a BASH script that just contains:

#!/bin/bash
sudo /sbin/shutdown -h now

Save the script somewhere good, like /usr/local/bin/

Then create a desktop shortcut to that script. Here's a good tutorial:
https://techatplay.wordpress.com/2015/09...pberry-pi/

You can also use a little script that detects a switch closure on a GPIO pin and does a clean shutdown after a few seconds. Then you can do it with a pushbutton. Many have done it - should be easy to find with Google.
Reply


Messages In This Thread
Shutdown procedures - by SailorMacSailface - 2020-03-21, 03:24 PM
RE: Shutdown procedures - by abarrow - 2020-03-21, 03:45 PM
RE: Shutdown procedures - by abarrow - 2020-03-21, 04:48 PM
RE: Shutdown procedures - by holgerw - 2020-03-22, 11:14 AM
RE: Shutdown procedures - by abarrow - 2020-03-23, 03:34 PM
RE: Shutdown procedures - by Knoet - 2020-03-22, 02:00 PM
RE: Shutdown procedures - by AlanH - 2020-03-22, 06:54 PM
RE: Shutdown procedures - by PaddyB - 2020-03-23, 01:41 PM
RE: Shutdown procedures - by SailorMacSailface - 2020-03-25, 04:07 PM
RE: Shutdown procedures - by mgrouch - 2020-03-25, 04:17 PM
RE: Shutdown procedures - by SailorMacSailface - 2020-03-25, 06:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)