diff --git a/src/scripts/freecwmp.sh b/src/scripts/freecwmp.sh index bb94c03..423589a 100644 --- a/src/scripts/freecwmp.sh +++ b/src/scripts/freecwmp.sh @@ -374,7 +374,7 @@ if [ \( "$action" = "apply_notification" \) -o \( "$action" = "apply_value" \) ] if [ "$__fault_count" = "0" ]; then # 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_value" ]; then ubus call tr069 SetParameterValuesStatus '{"status": "0"}'; fi else let n=$__fault_count-1 for i in `seq 0 $n` diff --git a/src/scripts/functions/management_server b/src/scripts/functions/management_server index 863de11..d28f0dd 100644 --- a/src/scripts/functions/management_server +++ b/src/scripts/functions/management_server @@ -166,7 +166,7 @@ local val="" local parm="InternetGatewayDevice.ManagementServer.PeriodicInformInterval" case "$action" in get_value) - val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.acs.periodic_inform_interval` + val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.acs.periodic_inform_interval 2> /dev/null` ;; get_name) val="1" @@ -183,7 +183,7 @@ local val=$1 local parm="InternetGatewayDevice.ManagementServer.PeriodicInformInterval" case "$action" in set_value) - /sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.acs.periodic_inform_interval="$val" + /sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} set cwmp.acs.periodic_inform_interval="$val" ;; set_notification) freecwmp_set_parameter_notification "$parm" "$val"