How to get the router's model inside Openwrt
cat /proc/cpuinfo
system type : Atheros AR9330 rev 1
machine : TP-LINK TL-MR3040 v2
processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 265.42
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0148,
0x0dd0, 0x04d0]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
cat /proc/cmdline
board=TL-MR3040-v2 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd