From b5a32fe006320ecfdfdc4ee20cd99137b164bc5b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 14 Jan 2021 03:40:51 +0100 Subject: [PATCH] Add boot property of operating system info (#46) --- lib/os.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/os.sh b/lib/os.sh index 1a11846..ad2ffb9 100644 --- a/lib/os.sh +++ b/lib/os.sh @@ -115,3 +115,11 @@ function bashio::os.board() { bashio::log.trace "${FUNCNAME[0]}" bashio::os 'os.info.board' '.board' } + +# ------------------------------------------------------------------------------ +# Returns the active boot. +# ------------------------------------------------------------------------------ +function bashio::os.boot() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::os 'os.info.boot' '.boot' +}