2011-11-13 07:40:16 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-11-16 02:21:00 +08:00
|
|
|
lantiq_soc_has_adsl() {
|
|
|
|
ls /lib/modules/*/drv_dsl_cpe_api.ko
|
|
|
|
}
|
|
|
|
|
2011-11-13 07:40:16 +08:00
|
|
|
lantiq_soc_name() {
|
|
|
|
grep ^system /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g"
|
|
|
|
}
|
|
|
|
|
|
|
|
lantiq_board_name() {
|
|
|
|
grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"
|
|
|
|
}
|
2012-02-14 23:05:49 +08:00
|
|
|
|
|
|
|
lantiq_dsl_fwannex() {
|
|
|
|
ls /lib/firmware/dsl-fw-*.bin 2> /dev/null | sed "s/.*\([ab]\)\.bin/\1/g"
|
|
|
|
}
|