source: trunk/target/linux/x86/base-files/lib/soekris.sh @ 25102

Last change on this file since 25102 was 25102, checked in by nbd, 5 years ago

x86/soekris: Add script to detect soekris model

Add script to detect soekris board of net4801 and net4826.

Patch from: kentarou matsuyama <matsuyama@…>

  • Property svn:executable set to *
File size: 247 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.