ixp4xx.sh 369 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012 OpenWrt.org
  4. #
  5. ixp4xx_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 Cambria"*)
  11. name="cambria"
  12. ;;
  13. "Gateworks Avila"*)
  14. name="avila"
  15. ;;
  16. *)
  17. name="generic";
  18. ;;
  19. esac
  20. echo $name
  21. }