12,302
edits
| (One intermediate revision by the same user not shown) | |||
| Line 87: | Line 87: | ||
Make it start the script automatically:  | Make it start the script automatically:  | ||
  sudo nano .bashrc  |   sudo nano .bashrc  | ||
and right at the end put:  | |||
<syntaxhighlight lang="bash">  | <syntaxhighlight lang="bash">  | ||
  if [ $(tty) == /dev/tty1 ]; then  |   if [ $(tty) == /dev/tty1 ]; then  | ||
    ./startup_script.sh  |     ./startup_script.sh  | ||
| Line 158: | Line 158: | ||
The shutdown command has a timer built in, so when it is called like this  | The shutdown command has a timer built in, so when it is called like this  | ||
  sudo shutdown -h 15:00  |   sudo shutdown -h 15:00  | ||
the system will shut down at three in the   | the system will shut down at three in the afternoon.  | ||
  sudo shutdown -h +30  |   sudo shutdown -h +30  | ||
will shut the system down in 30 minutes from now.  | will shut the system down in 30 minutes from now.  | ||
| Line 170: | Line 170: | ||
[https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59520 source]  | [https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59520 source]  | ||
==SD Card corruption issues==  | ==SD Card corruption issues==  | ||