x86/soekris: Add script to detect soekris model
[openwrt.git] / target / linux / x86 / base-files / lib / soekris.sh
1 #!/bin/sh
2
3 net48xx_board_name () {
4 local name
5 local pci=`wc -l /proc/bus/pci/devices`
6
7 case "$pci" in
8 *"8"*)
9 name="net4826"
10 ;;
11 *1[0-4]*)
12 name="net4801"
13 ;;
14 *)
15 name="net4826"
16 ;;
17 esac
18 echo $name
19 }
This page took 0.040195 seconds and 5 git commands to generate.