adapted because of changes in read_config
This commit is contained in:
parent
fe52f263a8
commit
259b61cda5
@ -375,6 +375,9 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
|
|||||||
current_settings_to_ismas () {
|
current_settings_to_ismas () {
|
||||||
local func="${FUNCNAME[0]}"
|
local func="${FUNCNAME[0]}"
|
||||||
local p=("$@")
|
local p=("$@")
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
local data="#M=APISM#C=CMD_SENDVERSION#J=
|
local data="#M=APISM#C=CMD_SENDVERSION#J=
|
||||||
{
|
{
|
||||||
\"VERSION_INFO\" : {
|
\"VERSION_INFO\" : {
|
||||||
@ -382,7 +385,7 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
|
|||||||
\"HASH\":\"$(compute_hash)\"
|
\"HASH\":\"$(compute_hash)\"
|
||||||
},
|
},
|
||||||
\"TARIFF\": {
|
\"TARIFF\": {
|
||||||
$(<$TARIFF_CURRENT_FULL)
|
$(<$TC_PSA_TC_FILE)
|
||||||
},
|
},
|
||||||
\"HARDWARE\" : {
|
\"HARDWARE\" : {
|
||||||
\"DEVICES\" : [
|
\"DEVICES\" : [
|
||||||
@ -399,8 +402,8 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
|
|||||||
sed -E -e 's/.*:\s*(.*)/\1/g')\"
|
sed -E -e 's/.*:\s*(.*)/\1/g')\"
|
||||||
},
|
},
|
||||||
\"DC\" : {
|
\"DC\" : {
|
||||||
\"VERSION\" : \"$(cat $UPDATE_CONF | jq -r .dc.version)\",
|
\"VERSION\" : \"$(cat $PSA_UPDATE_CONF | jq -r .dc.version)\",
|
||||||
\"MD5SUM\" : \"$(cat $UPDATE_CONF | jq -r .dc.dc2c)\"
|
\"MD5SUM\" : \"$(cat $PSA_UPDATE_CONF | jq -r .dc.dc2c)\"
|
||||||
},
|
},
|
||||||
\"PRINTER\" : {
|
\"PRINTER\" : {
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user