Skip to content
Snippets Groups Projects
Select Git revision
  • 1e8f9933b15e7d94804bf0deba2eb011f80c38d0
  • master default protected
2 results

Sound Detector Module.gtp

Blame
  • autoupdate.sh 265 B
    #!/bin/bash
    
    # do a git pull and reboot or restart script if anything changed
    
    cd /home/pi/traincam
    
    res=$(git pull)
    
    #echo $res
    ok="up-to-date"
    
    if [[ $res = *"up-to-date"* ]]; then
      echo "It's up to date !"
    else
      echo "We'll have to restart !"
      sudo reboot
    fi