From 8984bb265129baa5f666402e0cb33afb35cc9a18 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Apr 2022 16:00:04 -0700 Subject: [PATCH] initial Commit --- overlay/root/.PLUGIN_VERSION | 1 + overlay/root/bin/plugin_info | 19 +++++++++++++++++++ post_install.sh | 7 +++++++ ui.json | 4 ++++ 4 files changed, 31 insertions(+) create mode 100644 overlay/root/.PLUGIN_VERSION create mode 100644 overlay/root/bin/plugin_info create mode 100755 post_install.sh create mode 100644 ui.json diff --git a/overlay/root/.PLUGIN_VERSION b/overlay/root/.PLUGIN_VERSION new file mode 100644 index 0000000..543cf3f --- /dev/null +++ b/overlay/root/.PLUGIN_VERSION @@ -0,0 +1 @@ +2022.04.00 diff --git a/overlay/root/bin/plugin_info b/overlay/root/bin/plugin_info new file mode 100644 index 0000000..3babe64 --- /dev/null +++ b/overlay/root/bin/plugin_info @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# shellcheck disable=SC1091,2154 +. /etc/rc.subr && load_rc_config + +## TODO - Add someting useful to PLUGIN_INFO ---- +## NOTE Try not to use more than 50 characters or +## the line will wrap. -- Leading white space and +## blank lines are not rendered in the TrueNAS UI +## ---------------------------------------------- +cat << PLUGIN_INFO > /root/PLUGIN_INFO + +Please see the wiki for more information +- plugin version: ${plugin_version} + +PLUGIN_INFO +## ---------------------------------------------- + +exit diff --git a/post_install.sh b/post_install.sh new file mode 100755 index 0000000..c5eb955 --- /dev/null +++ b/post_install.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +version="$(cat /root/.PLUGIN_VERSION)" +sysrc plugin_initialized="${version}" +sysrc plugin_version="${version}" + + diff --git a/ui.json b/ui.json new file mode 100644 index 0000000..dda9d48 --- /dev/null +++ b/ui.json @@ -0,0 +1,4 @@ +{ + "adminportal": "http://%%IP%%:8091", + "docurl": "https://git.rail-city.net/kenjreno/iocage-plugin-zigbee2mqtt/wiki" +}