diff --git a/src/config/cwmp b/src/config/cwmp index 8248aa8..1cf5449 100644 --- a/src/config/cwmp +++ b/src/config/cwmp @@ -64,14 +64,3 @@ config scripts list get_notification_function get_wan_device_notification list set_value_function set_wan_device list set_notification_function set_wan_device_notification - list location /usr/share/freecwmp/functions/misc - list get_value_function get_misc - list location /usr/share/freecwmp/functions/device_users - list get_value_function get_device_users - list set_value_function set_device_users - list location /usr/share/freecwmp/functions/device_hosts - list get_value_function get_device_hosts - list location /usr/share/freecwmp/functions/device_routing - list get_value_function get_device_routing - list add_object_function add_lan_device - list delete_object_function delete_lan_device diff --git a/src/scripts/functions/lan_device b/src/scripts/functions/lan_device index eda81c7..e50718d 100644 --- a/src/scripts/functions/lan_device +++ b/src/scripts/functions/lan_device @@ -120,7 +120,6 @@ local val="" local i=0 while [ "`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].parameter 2>/dev/null`" != "" ] do - let i=$i+1 local parm=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].parameter 2>/dev/null` local indice=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].instance 2>/dev/null` case "$action" in @@ -133,6 +132,7 @@ do ubus_freecwmp_output $parm"IPInterfaceIPAddress" "$val" ;; esac + let i=$i+1 done } @@ -161,7 +161,6 @@ local val="" local i=0 while [ "`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].parameter 2>/dev/null`" != "" ] do - let i=$i+1 local parm=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].parameter 2>/dev/null` local indice=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get cwmp.@object[$i].instance 2>/dev/null` case "$action" in @@ -174,6 +173,7 @@ do ubus_freecwmp_output $parm"IPInterfaceSubnetMask" "$val" ;; esac + let i=$i+1 done }