kernel: generic: backport linkstation-poweroff driver
[openwrt/staging/stintel.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 globalscale,sheevaplug|\
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