update scripts SetParameterAttributes

This commit is contained in:
zribiahmed 2012-11-23 17:24:34 +00:00
parent cf0b01c0ed
commit f7218479d4
2 changed files with 2 additions and 1 deletions

View file

@ -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`

View file

@ -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
}