From 2a0c10fdebf3f40fc9c306d63e05551dd71bfc93 Mon Sep 17 00:00:00 2001 From: zribiahmed Date: Fri, 15 Feb 2013 09:44:32 +0000 Subject: [PATCH] --- src/scripts/freecwmp.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/scripts/freecwmp.sh b/src/scripts/freecwmp.sh index 35dd305..713e44f 100644 --- a/src/scripts/freecwmp.sh +++ b/src/scripts/freecwmp.sh @@ -50,6 +50,7 @@ case "$1" in if [ "$2" = "notification" ]; then __arg1="$3" __arg2="$4" + __arg3="$5" action="set_notification" elif [ "$2" = "tag" ]; then __arg1="$3" @@ -332,9 +333,11 @@ if [ "$action" = "set_notification" ]; then fi freecwmp_check_fault "$__arg1" fault_code="$?" - if [ "$fault_code" = "0" ]; then - freecwmp_execute_functions "$set_notification_functions" "$__arg1" "$__arg2" - fault_code="$?" + if [ "$__arg3" != "0" ];then + if [ "$fault_code" = "0" ]; then + freecwmp_execute_functions "$set_notification_functions" "$__arg1" "$__arg2" + fault_code="$?" + fi fi if [ "$fault_code" != "0" ]; then let fault_code=$fault_code+9000