From 1e466941e3343a2ae95e619d10f969a9d96ede33 Mon Sep 17 00:00:00 2001 From: Robbie Ferguson Date: Mon, 25 Feb 2019 12:18:33 -0500 Subject: [PATCH] Share the script with non-NEMS users --- piwatcher | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/piwatcher b/piwatcher index 08364ea..e34b34c 100755 --- a/piwatcher +++ b/piwatcher @@ -9,7 +9,12 @@ # the Pi is powered back on after 15 seconds of power off. # This way, if the Pi locks up, it will be automatically restarted. +# For those interested, here's how I compile and install piWatcher: +# https://github.com/Cat5TV/nems-admin/blob/master/build/160-rpi-piwatcher + platform=$(/usr/local/bin/nems-info platform) +# If you're not using NEMS Linux but still want to use my script, comment the command above and uncomment this: +#platform=1 if [[ $platform < 10 ]]; then