product_model.sh 981 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. #
  3. # Tpye select
  4. #
  5. # tmp_hard_verssion="`/usr/bin/vendor_storage -r VENDOR_WIFI_MAC_ID | awk -F" " '{print $2}'`"
  6. # tmp1_hard_version=${tmp_hard_verssion: -2}
  7. # hard_version="Ver${tmp1_hard_version:0:1}.${tmp1_hard_version:1:1}"
  8. hard_version="Ver1.0"
  9. sysconf /etc/speaker.conf set system hard_version ${hard_version}
  10. # SN="`/usr/bin/vendor_storage -r VENDOR_SN_ID | awk '{print $2}'`"
  11. # SN_MODEL="`echo ${SN:0:4}`"
  12. # # erro,using default model
  13. # [ -z "${SN_MODEL}" ] && exit 0
  14. # # SQ10-B
  15. # if [ "${SN_MODEL}" = "ZSQB" ];then
  16. # model=SQ10-B
  17. # ui_model=SQ10-B
  18. # # SQ10-T
  19. # elif [ "${SN_MODEL}" = "ZSQT" ];then
  20. # model=SQ10-T
  21. # ui_model=SQ10-T
  22. # fi
  23. model=G2-DIA-CDD2
  24. ui_model=G2-DIA-CDD2
  25. sysconf /etc/speaker.conf set system model ${model}
  26. sysconf /etc/speaker.conf set system ui_model ${ui_model}
  27. location="`sysconf /etc/speaker.conf get system location`"
  28. [ "${location}" = "**" ] && sysconf /etc/speaker.conf set system location ${model}
  29. sync
  30. exit 0