cns3xxx.sh 309 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012 OpenWrt.org
  4. #
  5. cns3xxx_board_name() {
  6. local machine
  7. local name
  8. machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
  9. case "$machine" in
  10. "Gateworks Corporation Laguna"*)
  11. name="laguna"
  12. ;;
  13. *)
  14. name="generic";
  15. ;;
  16. esac
  17. echo $name
  18. }