Compare commits

...

1 Commits
devel ... dmf_2

Author SHA1 Message Date
Vivek Kumar Dutta
23ab601027 dm-framework: updated apply handlers 2026-01-09 15:56:21 +05:30
2 changed files with 12 additions and 1 deletions

View File

@@ -9,3 +9,14 @@ json_compact
data="$(json_dump)"
ubus -t 5 call bbfdm.dmf transaction "${data}"
sleep 2
# Check if delta exists
delta="$(uci -c /etc/config/ -t /tmp/bbfdm/.usp/config/ changes network 2>&1)"
# In case of delta commit and reload service
if [ -n "${delta}" ]; then
uci -c /etc/config/ -t /tmp/bbfdm/.usp/config/ commit network
ubus call uci commit '{"config":"network"}'
sleep 5
fi

View File

@@ -4,7 +4,7 @@
logger -t dmf.revert_handler "Inputs [$@]"
json_init
json_add_string "cmd" "revert"
json_add_string "cmd" "abort"
json_compact
data="$(json_dump)"