router model autodetection and firmware selection