#!/bin/sh # # Tpye select # # tmp_hard_verssion="`/usr/bin/vendor_storage -r VENDOR_WIFI_MAC_ID | awk -F" " '{print $2}'`" # tmp1_hard_version=${tmp_hard_verssion: -2} # hard_version="Ver${tmp1_hard_version:0:1}.${tmp1_hard_version:1:1}" hard_version="Ver1.0" sysconf /etc/speaker.conf set system hard_version ${hard_version} # SN="`/usr/bin/vendor_storage -r VENDOR_SN_ID | awk '{print $2}'`" # SN_MODEL="`echo ${SN:0:4}`" # # erro,using default model # [ -z "${SN_MODEL}" ] && exit 0 # # SQ10-B # if [ "${SN_MODEL}" = "ZSQB" ];then # model=SQ10-B # ui_model=SQ10-B # # SQ10-T # elif [ "${SN_MODEL}" = "ZSQT" ];then # model=SQ10-T # ui_model=SQ10-T # fi model=G2-DIA-CDD2 ui_model=G2-DIA-CDD2 sysconf /etc/speaker.conf set system model ${model} sysconf /etc/speaker.conf set system ui_model ${ui_model} location="`sysconf /etc/speaker.conf get system location`" [ "${location}" = "**" ] && sysconf /etc/speaker.conf set system location ${model} sync exit 0