machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in
+ *AP121)
+ name="ap121"
+ ;;
+ *AP121-MINI)
+ name="ap121-mini"
+ ;;
*AP81)
name="ap81"
;;
*PB44)
name="pb44"
;;
+ *PB92)
+ name="pb92"
+ ;;
*"RouterBOARD 411/A/AH")
name="rb-411"
;;
*TL-WA901ND)
name="tl-wa901nd"
;;
+ *"TL-WA901ND v2")
+ name="tl-wa901nd-v2"
+ ;;
*TL-WR741ND)
name="tl-wr741nd"
;;
*WNDR3700)
name="wndr3700"
;;
+ *WNDR3700v2)
+ name="wndr3700v2"
+ ;;
*WNR2000)
name="wnr2000"
;;
*WRT400N)
name="wrt400n"
;;
+ *WZR-HP-AG300H)
+ name="wzr-hp-ag300h"
+ ;;
*WZR-HP-G300NH)
name="wzr-hp-g300nh"
;;