mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-11 03:28:31 +01:00
<empty commit message>
This commit is contained in:
parent
294b7ce2c1
commit
c487d77d0c
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue