blob: e4aa7b0cd960bf66c545c69fb28b90ac1e9779f2 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/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
11touch /etc/config/ubootenv
12
13. /lib/uboot-envtools.sh
14. /lib/functions.sh
15
16board=$(board_name)
17
18case "$board" in
19img,pistachio-marduk)
20 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x1000"
21 ;;
22esac
23
24config_load ubootenv
25config_foreach ubootenv_add_app_config ubootenv
26
27exit 0