Root/target/linux/x86/base-files/lib/soekris.sh

1#!/bin/sh
2
3net48xx_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}
20

Archive Download this file



interactive