ac82d9da8bd8b46e12889db91bdbadcf8d672e8d
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / pistachio
1 #!/bin/sh
2 #
3 # Copyright (C) 2017 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 [ -e /etc/config/ubootenv ] && exit 0
10
11 touch /etc/config/ubootenv
12
13 . /lib/uboot-envtools.sh
14 . /lib/functions.sh
15
16 board=$(board_name)
17
18 case "$board" in
19 marduk)
20 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x1000"
21 ;;
22 esac
23
24 config_load ubootenv
25 config_foreach ubootenv_add_app_config ubootenv
26
27 exit 0