mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user