kirkwood: use real model names for Linksys devices
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / kirkwood
1 #!/bin/sh
2 #
3 # Copyright (C) 2012-2014 OpenWrt.org
4 #
5
6 [ -e /etc/config/ubootenv ] && exit 0
7
8 touch /etc/config/ubootenv
9
10 . /lib/uboot-envtools.sh
11 . /lib/functions.sh
12
13 board=$(board_name)
14
15 case "$board" in
16 checkpoint,l-50|\
17 cloudengines,pogoe02|\
18 cloudengines,pogoplugv4|\
19 iom,ix2-200|\
20 linksys,e4200-v2|\
21 linksys,ea4500|\
22 raidsonic,ib-nas62x0|\
23 seagate,dockstar|\
24 zyxel,nsa310b|\
25 zyxel,nsa310s|\
26 zyxel,nsa325)
27 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
28 ;;
29 linksys,ea3500)
30 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
31 ;;
32 esac
33
34 config_load ubootenv
35 config_foreach ubootenv_add_app_config ubootenv
36
37 exit 0