mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-02-22 12:23:28 +01:00
fix script bug
This commit is contained in:
parent
01a29330da
commit
6abc48dbcd
2 changed files with 2 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue