summaryrefslogtreecommitdiff
path: root/target/linux/x86/base-files/lib/soekris.sh
blob: e416ad396283ea38846c358015e636ef2f1ceddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

net48xx_board_name () {
    local name
    local pci=`wc -l /proc/bus/pci/devices`

    case "$pci" in
	*"8"*)
	    name="net4826"
	    ;;
	*1[0-4]*)
	    name="net4801"
	    ;;
	*)
	    name="net4826"
	    ;;
    esac
    echo $name
}