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