fix script bug

This commit is contained in:
zribiahmed 2012-11-23 14:21:39 +00:00
parent 01a29330da
commit 6abc48dbcd
2 changed files with 2 additions and 13 deletions

View file

@ -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

View file

@ -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
}