uboot-envtools: ath79: fix indent and alphabetical order
[openwrt/staging/lynxis.git] / package / boot / uboot-envtools / files / ath79
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 buffalo,bhr-4grv2|\
17 engenius,ecb1750|\
18 glinet,gl-ar300m-nand|\
19 glinet,gl-ar300m-nor|\
20 librerouter,librerouter-v1|\
21 netgear,ex6400|\
22 netgear,ex7300|\
23 ocedo,koala|\
24 ocedo,raccoon|\
25 openmesh,om5p-ac-v2|\
26 yuncore,a770)
27 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
28 ;;
29 buffalo,wzr-hp-ag300h)
30 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
31 ;;
32 qihoo,c301)
33 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
34 ;;
35 esac
36
37 config_load ubootenv
38 config_foreach ubootenv_add_app_config ubootenv
39
40 exit 0