aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91/base-files/lib/preinit
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2015-07-04 01:25:15 +0000
committerFlorian Fainelli <florian@openwrt.org>2015-07-04 01:25:15 +0000
commitad576d262d5e954a322525675352ecce79a932a0 (patch)
tree7ef885fdb1b70ebbff0cbd89aa35f51fb65a1bc3 /target/linux/at91/base-files/lib/preinit
parent4748d69f33976e89b7fe8af448ab8151dc61e700 (diff)
downloadupstream-ad576d262d5e954a322525675352ecce79a932a0.tar.gz
upstream-ad576d262d5e954a322525675352ecce79a932a0.tar.bz2
upstream-ad576d262d5e954a322525675352ecce79a932a0.zip
at91: add Device Tree based board detection
Set up eth0 as LAN interface by default. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 46174
Diffstat (limited to 'target/linux/at91/base-files/lib/preinit')
-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