Conditional loading of ICE TR-069 parameters

This commit is contained in:
Simon Kers 2014-03-10 16:03:32 +01:00
parent 9135a3714e
commit 8a638cec80

View file

@ -178,6 +178,13 @@ if [ ${FLAGS_debug} -eq ${FLAGS_TRUE} ]; then
echo "[debug] started at \"`date`\""
fi
prefix_list="\
InternetGatewayDevice. \
InternetGatewayDevice.DeviceInfo. \
InternetGatewayDevice.LANDevice. \
InternetGatewayDevice.ManagementServer. \
InternetGatewayDevice.WANDevice."
. /lib/functions/network.sh
. /usr/share/freecwmp/functions/common
. /usr/share/freecwmp/functions/device_info
@ -185,31 +192,15 @@ fi
. /usr/share/freecwmp/functions/management_server
. /usr/share/freecwmp/functions/wan_device
if [ $(db get hw.board.hasVoice) -eq 1 ]; then
. /usr/share/freecwmp/functions/voice_service
. /usr/share/freecwmp/functions/voice_service
prefix_list="$prefix_list InternetGatewayDevice.Services."
fi
. /usr/share/freecwmp/functions/models
. /usr/share/freecwmp/functions/x_broadcom_com_ice
if [ $(db get hw.board.hasVoice) -eq 1 ]; then
prefix_list="\
InternetGatewayDevice. \
InternetGatewayDevice.DeviceInfo. \
InternetGatewayDevice.LANDevice. \
InternetGatewayDevice.ManagementServer. \
InternetGatewayDevice.WANDevice. \
InternetGatewayDevice.Services. \
InternetGatewayDevice.X_BROADCOM_COM_ICE."
else
prefix_list="\
InternetGatewayDevice. \
InternetGatewayDevice.DeviceInfo. \
InternetGatewayDevice.LANDevice. \
InternetGatewayDevice.ManagementServer. \
InternetGatewayDevice.WANDevice. \
InternetGatewayDevice.X_BROADCOM_COM_ICE."
if [ -e "/etc/config/ice" ]; then
. /usr/share/freecwmp/functions/x_broadcom_com_ice
prefix_list="$prefix_list InternetGatewayDevice.X_BROADCOM_COM_ICE."
fi
config_load cwmp
# Fault code