From c487d77d0c5d1568ae56005bac258f3449b16fb9 Mon Sep 17 00:00:00 2001 From: zribiahmed Date: Fri, 3 May 2013 16:11:18 +0000 Subject: [PATCH] --- src/scripts/functions/device_info | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripts/functions/device_info b/src/scripts/functions/device_info index e449131..7b59fbf 100644 --- a/src/scripts/functions/device_info +++ b/src/scripts/functions/device_info @@ -24,7 +24,7 @@ local val="" local permissions="" case "$action" in get_value) - val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get cwmp.cpe.oui 2> /dev/null` + val=`cat /proc/nvram/BaseMacAddr | awk '{ print $1$2$3}' 2> /dev/null` ;; get_name) permissions="0" @@ -40,7 +40,7 @@ get_device_info_product_class() { local val="" case "$action" in get_value) - val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get cwmp.cpe.product_class 2> /dev/null` + val=`cat /etc/iop_version | cut -d'_' -f1 2> /dev/null` ;; get_name) permissions="0" @@ -57,7 +57,7 @@ local val="" local permissions="" case "$action" in get_value) - local val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get cwmp.cpe.serial_number 2> /dev/null` + local val=`cat /proc/nvram/SerialNumber 2> /dev/null` ;; get_name) permissions="0" @@ -74,7 +74,7 @@ local val="" local permissions="" case "$action" in get_value) - val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get cwmp.cpe.hardware_version 2> /dev/null` + val=`cat /etc/iop_iboardid 2> /dev/null` ;; get_name) permissions="0" @@ -91,7 +91,7 @@ local val="" local permissions="" case "$action" in get_value) - val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get cwmp.cpe.software_version 2> /dev/null` + val=`cat /etc/iop_version | cut -d'_' -f2 2> /dev/null` ;; get_name) permissions="0"