From e56b3eaf0b9028e5c3c7a3d633816bfb4b5992f2 Mon Sep 17 00:00:00 2001
From: Qin <topeqin@gmail.com>
Date: Sat, 22 Aug 2020 12:31:05 +0800
Subject: [PATCH] add_delete_object operation: redirect to get_value

---
 scripts/icwmp.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/icwmp.sh b/scripts/icwmp.sh
index 2d2ff8cc..6d382108 100644
--- a/scripts/icwmp.sh
+++ b/scripts/icwmp.sh
@@ -214,7 +214,7 @@ handle_action() {
 
 
 	if [ "$action" = "add_object" -o "$action" = "delete_object" ]; then
-		/usr/sbin/icwmpd -m 1 get_value "$__arg2" "$__arg1"		
+		/usr/sbin/icwmpd -m 1 $action "$__arg2" "$__arg1"		
 	fi
 
 	if [ "$action" = "inform" ]; then
-- 
GitLab