mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 11:24:42 +00:00
x86/soekris: Add script to detect soekris model
Add script to detect soekris board of net4801 and net4826. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25102
This commit is contained in:
parent
9a37eaeacf
commit
3d9d5cee8a
19
target/linux/x86/base-files/lib/soekris.sh
Executable file
19
target/linux/x86/base-files/lib/soekris.sh
Executable file
@ -0,0 +1,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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user