aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2015-07-18 22:36:18 +0000
committerFlorian Fainelli <florian@openwrt.org>2015-07-18 22:36:18 +0000
commitbeb1e2b1edf9d49f1f733236729ab818e604a8ae (patch)
tree5806c8fadcac71f6a3cabc43d2dbdc7179cfed39
parentd19d94c2927af00bb63264b801c2cf528dd28f00 (diff)
downloadupstream-beb1e2b1edf9d49f1f733236729ab818e604a8ae.tar.gz
upstream-beb1e2b1edf9d49f1f733236729ab818e604a8ae.tar.bz2
upstream-beb1e2b1edf9d49f1f733236729ab818e604a8ae.zip
at91: add Device Tree based board detection
Set up eth0 as LAN interface by default. Backport of r46174 Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46419 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh b/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
index 03706ffe1a..5c981016a4 100644
--- a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
+++ b/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh
@@ -1,9 +1,9 @@
#!/bin/sh
do_at91() {
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
- echo $(strings /proc/device-tree/compatible | head -1) > /tmp/sysinfo/board_name
- echo $(cat /proc/device-tree/model) > /tmp/sysinfo/model
+ . /lib/at91.sh
+
+ at91_board_detect
}
boot_hook_add preinit_main do_at91