rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / package / boot / uboot-envtools / files / ar71xx
1 #!/bin/sh
2 #
3 # Copyright (C) 2011-2014 OpenWrt.org
4 #
5
6 [ -e /etc/config/ubootenv ] && exit 0
7
8 touch /etc/config/ubootenv
9
10 . /lib/ar71xx.sh
11 . /lib/uboot-envtools.sh
12 . /lib/functions.sh
13
14 board=$(ar71xx_board_name)
15
16 case "$board" in
17 alfa-ap120c | \
18 all0258n | \
19 cap324 | \
20 cap4200ag | \
21 carambola2 | \
22 cr3000 | \
23 cr5000 | \
24 eap300v2 | \
25 hornet-ub | \
26 hornet-ub-x2 | \
27 mr1750 | \
28 mr600 | \
29 mr600v2 | \
30 mr900 | \
31 mr900v2 | \
32 nbg6716 | \
33 om5p-an | \
34 om5p-ac | \
35 om5p-acv2 | \
36 om5p | \
37 tube2h | \
38 wndr3700)
39 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
40 ;;
41 alfa-ap96 | \
42 all0315n | \
43 om2p | \
44 om2pv2 | \
45 om2p-hs | \
46 om2p-hsv2 | \
47 om2p-lc)
48 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
49 ;;
50 wzr-hp-ag300h)
51 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
52 ;;
53 qihoo-c301)
54 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
55 ;;
56 esac
57
58 config_load ubootenv
59 config_foreach ubootenv_add_app_config ubootenv
60
61 exit 0