summaryrefslogtreecommitdiff
path: root/target/linux/x86/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-26 11:33:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-26 11:33:42 +0000
commit3d9d5cee8aa115a9cbc22c78ef987674569ea77d (patch)
treed8eb7d9415c8821cb219ee715f53be7df7f13ad8 /target/linux/x86/base-files
parent9a37eaeacf30cceefd56aa53d80a6b7f3fe26503 (diff)
downloadmtk-20170518-3d9d5cee8aa115a9cbc22c78ef987674569ea77d.zip
mtk-20170518-3d9d5cee8aa115a9cbc22c78ef987674569ea77d.tar.gz
mtk-20170518-3d9d5cee8aa115a9cbc22c78ef987674569ea77d.tar.bz2
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
Diffstat (limited to 'target/linux/x86/base-files')
-rwxr-xr-xtarget/linux/x86/base-files/lib/soekris.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/lib/soekris.sh b/target/linux/x86/base-files/lib/soekris.sh
new file mode 100755
index 0000000..e416ad3
--- /dev/null
+++ b/target/linux/x86/base-files/lib/soekris.sh
@@ -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
+}