From 27449e9cba07b4f42b29cbc183ba6c543d8d7835 Mon Sep 17 00:00:00 2001 From: Hans Karlinius Date: Mon, 2 Dec 2024 14:01:17 +0100 Subject: [PATCH] test --- vhclient/config.yaml | 2 +- vhclient/rootfs/usr/bin/vh_editini | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 vhclient/rootfs/usr/bin/vh_editini diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 0b00a1c..647af6c 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -1,5 +1,5 @@ name: VirtualHere Client -version: "0.1.329" +version: "0.1.330" slug: vhclient description: VirtualHere Client arch: diff --git a/vhclient/rootfs/usr/bin/vh_editini b/vhclient/rootfs/usr/bin/vh_editini new file mode 100755 index 0000000..b1229f0 --- /dev/null +++ b/vhclient/rootfs/usr/bin/vh_editini @@ -0,0 +1,18 @@ +#!/usr/bin/awk -f + +BEGIN { + section = $2; + key = $3; + value = $4; + found_section = false; +} + +/^\[$section\]/ { + found_section = true; +} + +END { + print "Found section: $found_section"; +} + +/config/vhclient.ini