wireguard-tools: add tunlink option for hostroute
[openwrt/staging/mkresin.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/uboot-envtools.sh
11 . /lib/functions.sh
12
13 board=$(board_name)
14
15 case "$board" in
16 a40|\
17 a60|\
18 alfa-ap120c|\
19 all0258n|\
20 ap121f|\
21 ap90q|\
22 ap91-5g|\
23 arduino-yun|\
24 cap324|\
25 cap4200ag|\
26 carambola2|\
27 cpe830|\
28 cpe870|\
29 cr3000|\
30 cr5000|\
31 dw33d|\
32 e1700ac-v2|\
33 e600g-v2|\
34 e600gac-v2|\
35 eap300v2|\
36 ens202ext|\
37 gl-ar300m|\
38 gl-ar750|\
39 hornet-ub|\
40 hornet-ub-x2|\
41 jwap230|\
42 koala|\
43 mr1750|\
44 mr1750v2|\
45 mr600|\
46 mr600v2|\
47 mr900|\
48 mr900v2|\
49 n5q|\
50 nbg6616|\
51 nbg6716|\
52 om5p|\
53 om5p-ac|\
54 om5p-acv2|\
55 om5p-an|\
56 r36a|\
57 rme-eg200|\
58 sr3200|\
59 t830|\
60 tube2h|\
61 wam250|\
62 wnr1000-v2|\
63 wnr2000-v3|\
64 wnr2200|\
65 wnr612-v2|\
66 xd3200)
67 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
68 ;;
69 alfa-ap96|\
70 all0315n|\
71 om2p|\
72 om2p-hs|\
73 om2p-hsv2|\
74 om2p-hsv3|\
75 om2p-hsv4|\
76 om2p-lc|\
77 om2pv2|\
78 om2pv4)
79 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
80 ;;
81 dap-2695-a1|\
82 wzr-hp-ag300h)
83 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
84 ;;
85 dr342|\
86 dr531)
87 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
88 ;;
89 gl-ar150|\
90 gl-domino|\
91 gl-mifi)
92 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
93 ;;
94 rambutan)
95 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
96 ubootenv_add_uci_config "/dev/mtd1" "0x100000" "0x20000" "0x20000"
97 ;;
98 qihoo-c301)
99 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
100 ;;
101 wi2a-ac200i)
102 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x8000" "0x10000"
103 ;;
104 wndr3700)
105 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
106 ;;
107 wndr4300)
108 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
109 ;;
110 esac
111
112 config_load ubootenv
113 config_foreach ubootenv_add_app_config ubootenv
114
115 exit 0