Skip to content

Instantly share code, notes, and snippets.

@xtacocorex
xtacocorex / chip_batt_autoshutdown.sh
Last active May 22, 2018 09:04
CHIP Auto Shutdown based upon battery level
#!/bin/bash
# 2016 ROBERT WOLTERMAN (xtacocorex)
# WITH HELP FROM CHIP-hwtest/battery.sh
# THIS NEEDS TO BE RUN AS ROOT
# PROBABLY SET AS A CRON JOB EVERY 5 OR 10 MINUTES
# SIMPLE SCRIPT TO POWER DOWN THE CHIP BASED UPON BATTERY VOLTAGE