test
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
tmpfile="/tmp/vhclient_config_tmp"
|
||||
file="/config/vhclient.ini"
|
||||
touch $file
|
||||
|
||||
if [ -z "${3:-}" ]; then
|
||||
v = ''
|
||||
v=''
|
||||
else
|
||||
v = $3
|
||||
v=$3
|
||||
fi
|
||||
|
||||
awk -f /usr/bin/vh_editini.awk -v section=$1 -v key=$2 -v value=$v $file
|
||||
awk -f /usr/bin/vh_editini.awk -v section=$1 -v key=$2 -v value=$v $file > $tmpfile
|
||||
mv $tmpfile $file
|
||||
|
||||
@@ -37,7 +37,6 @@ $0 ~ "^\\[" section "\\]" {
|
||||
}
|
||||
|
||||
END {
|
||||
#print "Found section: " section " " found_section " and " key " " found_key;
|
||||
if (!found_section) {
|
||||
print "[" section "]";
|
||||
print key "=" value;
|
||||
|
||||
Reference in New Issue
Block a user