mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 01:16:23 +00:00
Convert whole target to Device Tree based board detection instead of identifying devices by dts file name. With this we can drop mvebu.sh translation script and rely on common method for model detection. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
21 lines
495 B
Bash
Executable File
21 lines
495 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
|
# Copyright (C) 2016 LEDE-Project.org
|
|
|
|
START=97
|
|
boot() {
|
|
. /lib/functions.sh
|
|
|
|
case $(board_name) in
|
|
linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
|
|
# make sure auto_recovery in uboot is always on
|
|
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
|
|
if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
|
|
fw_setenv auto_recovery yes
|
|
fi
|
|
# reset the boot counter
|
|
mtd resetbc s_env
|
|
;;
|
|
esac
|
|
}
|