test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: VirtualHere Client
|
||||
version: "0.1.331"
|
||||
version: "0.1.332"
|
||||
slug: vhclient
|
||||
description: VirtualHere Client
|
||||
arch:
|
||||
|
||||
@@ -3,24 +3,4 @@
|
||||
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
|
||||
}
|
||||
|
||||
editini $1 $2 $3
|
||||
|
||||
awk -f vh_editini.awk -v section=$1 -v key=$2 -v value=$3 $file
|
||||
|
||||
13
vhclient/rootfs/usr/bin/vh_editini.awk
Executable file
13
vhclient/rootfs/usr/bin/vh_editini.awk
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
BEGIN {
|
||||
found_section = false;
|
||||
}
|
||||
|
||||
0$ ~ "^\[" $section {
|
||||
found_section = true;
|
||||
}
|
||||
|
||||
END {
|
||||
print "Found section: $found_section";
|
||||
}
|
||||
Reference in New Issue
Block a user