mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
update scripts SetParameterAttributes
This commit is contained in:
parent
cf0b01c0ed
commit
f7218479d4
2 changed files with 2 additions and 1 deletions
|
|
@ -375,6 +375,7 @@ if [ \( "$action" = "apply_notification" \) -o \( "$action" = "apply_value" \) ]
|
|||
# applying
|
||||
/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} commit
|
||||
if [ "$action" = "apply_value" ]; then ubus call tr069 SetParameterValuesStatus '{"status": "0"}'; fi
|
||||
if [ "$action" = "apply_notification" ]; then ubus call tr069 SetParameterAttributes '{"success": "0", "fault_code":""}' 2> /dev/null; fi
|
||||
else
|
||||
let n=$__fault_count-1
|
||||
for i in `seq 0 $n`
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ case "$action" in
|
|||
ubus call tr069 SetParameterValuesFault '{"parameter": "'$parameter'", "fault_code":"'$fault_code'"}' 2> /dev/null
|
||||
;;
|
||||
apply_notification)
|
||||
ubus call tr069 SetParameterAttributes '{"fault_code":"'$fault_code'"}' 2> /dev/null
|
||||
ubus call tr069 SetParameterAttributes '{"success": "", "fault_code":"'$fault_code'"}' 2> /dev/null
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue