Root/target/linux/lantiq/base-files/lib/lantiq.sh

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

Archive Download this file



interactive