Listing devices supported by OpenWRT

Problem:

You need a list of devices supported by OpenWRT.

Solution:

There is no complete list of devices supported by OpenWRT. However, we can list all devices that have a predefined profile in the OpenWRT repository.

Profiles are saved in .dts files. Each .dts file contains a line with model = "..." containing the human-readable model identifier.

Using a simple bash script, we can clone the current OpenWRT repository trunk and use grep and cut to extract the model identifier. Additionally, we sort the resulting list alphabetically.

#!/bin/bash
#Download OpenWRT source code (trunk)
svn export svn://svn.openwrt.org/openwrt/trunk/ openwrt
cd openwrt
#Search for device model names, sort alphabetically and print
for i in $(find . -name \*.dts) ; do grep model $i | cut -d\" -f2 ; done | sort