From 85b760ba55617f07662786fa2abadf3da3419780 Mon Sep 17 00:00:00 2001 From: trekhopton Date: Tue, 5 Apr 2022 15:28:44 +0930 Subject: [PATCH] rv: improved shutdown check --- cmd/rv/main.go | 2 ++ init/pi_run.sh | 0 2 files changed, 2 insertions(+) mode change 100644 => 100755 init/pi_run.sh 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