clean up modules.mk
[openwrt/openwrt.git] / target / linux / lantiq / base-files / lib / lantiq.sh
1 #!/bin/sh
2
3 lantiq_soc_has_adsl() {
4 ls /lib/modules/*/drv_dsl_cpe_api.ko
5 }
6
7 lantiq_soc_name() {
8 grep ^system /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g"
9 }
10
11 lantiq_board_name() {
12 grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"
13 }
14
15 lantiq_dsl_fwannex() {
16 ls /lib/firmware/dsl-fw-*.bin 2> /dev/null | sed "s/.*\([ab]\)\.bin/\1/g"
17 }