Skip to content

Instantly share code, notes, and snippets.

@bennettscience
Created September 19, 2016 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennettscience/24753482382aba148e6ca191ca6e0a46 to your computer and use it in GitHub Desktop.
Save bennettscience/24753482382aba148e6ca191ca6e0a46 to your computer and use it in GitHub Desktop.
Bash script to automate shutdown and startup of a kiosk computer
#! /bin/bash
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo `date '+%s' -d '+ 10 minutes'` > /sys/class/rtc/rtc0/wakealarm
shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment