diff options
author | Florian Fainelli <florian@openwrt.org> | 2015-07-04 01:25:15 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2015-07-04 01:25:15 +0000 |
commit | 6c289f2344a99877dc922b1868c0b450a8a3a53d (patch) | |
tree | 0cf641a2140373a5da1820c0e0284fe0d79e63b4 /target/linux/at91/base-files/lib/preinit | |
parent | 455509fe28a396038681dd373a9705705aca3adc (diff) | |
download | master-187ad058-6c289f2344a99877dc922b1868c0b450a8a3a53d.tar.gz master-187ad058-6c289f2344a99877dc922b1868c0b450a8a3a53d.tar.bz2 master-187ad058-6c289f2344a99877dc922b1868c0b450a8a3a53d.zip |
at91: add Device Tree based board detection
Set up eth0 as LAN interface by default.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46174 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91/base-files/lib/preinit')
-rw-r--r-- | target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh | 6 |
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 |