diff --git a/cmd/rv/main.go b/cmd/rv/main.go index 3a842901..85a14ebe 100644 --- a/cmd/rv/main.go +++ b/cmd/rv/main.go @@ -219,6 +219,8 @@ func run(rv *revid.Revid, ns *netsender.Sender, l *logger.Logger, nl *netlogger. if err != nil { l.Log(logger.Error, "could not power off", "error", err) } + } else if _, ok := vars["Off"]; !ok { + l.Log(logger.Info, "Off variable has not been found") } // Configure revid based on the vars. diff --git a/init/pi_run.sh b/init/pi_run.sh old mode 100644 new mode 100755