machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in
+ *ALL0258N)
+ name="all0258n"
+ ;;
*AP121)
name="ap121"
;;
*"NBG460N/550N/550NH")
name="nbg460n_550n_550nh"
;;
+ *OM2P)
+ name="om2p"
+ ;;
*PB42)
name="pb42"
;;
*"RouterBOARD 493/AH")
name="rb-493"
;;
+ *"RouterBOARD 493G")
+ name="rb-493g"
+ ;;
*"RouterBOARD 750")
name="rb-750"
;;
*TL-WR941ND)
name="tl-wr941nd"
;;
+ *"TL-WR703N v1")
+ name="tl-wr703n"
+ ;;
*UniFi)
name="unifi"
;;
*WRT400N)
name="wrt400n"
;;
+ *WZR-HP-AG300H)
+ name="wzr-hp-ag300h"
+ ;;
*WZR-HP-G300NH)
name="wzr-hp-g300nh"
;;
- *WZR-HP-G301NH)
- name="wzr-hp-g301nh"
+ *WHR-HP-G300N)
+ name="whr-hp-g300n"
;;
*ZCN-1523H-2)
name="zcn-1523h-2"