This commit is contained in:
Hans Karlinius
2024-12-02 17:31:57 +01:00
parent 27449e9cba
commit 51cfddec6b
2 changed files with 23 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.330"
version: "0.1.331"
slug: vhclient
description: VirtualHere Client
arch:

View File

@@ -1,18 +1,26 @@
#!/usr/bin/awk -f
#!/command/with-contenv bashio
BEGIN {
section = $2;
key = $3;
value = $4;
found_section = false;
file="/config/vhclient.ini"
touch $file
editini() {
awk -f
BEGIN {
section = $1;
key = $2;
value = $3;
found_section = false;
}
/^\[$section\]/ {
found_section = true;
}
END {
print "Found section: $found_section";
}
$file
}
/^\[$section\]/ {
found_section = true;
}
editini $1 $2 $3
END {
print "Found section: $found_section";
}
/config/vhclient.ini