Root/target/linux/lantiq/base-files/etc/uci-defaults/uboot_environment

1#!/bin/sh
2#
3# Copyright (C) 2012 OpenWrt.org
4#
5
6uboot_environment_configuration() {
7    local dev=$1
8    local offset=$2
9    local envsize=$3
10    local secsize=$4
11    local numsec=$5
12    echo "$dev $offset $envsize $secsize $numsec" > /etc/fw_env.config
13}
14
15[ -e /etc/config/fw_env.config ] && exit 0
16
17. /lib/lantiq.sh
18
19board=$(lantiq_board_name)
20
21case "$board" in
22GIGASX76X)
23    uboot_environment_configuration "/dev/mtd1" "0x0" "0x10000" "0x10000" "1"
24    ;;
25
26*)
27    # custom foo goes here
28    true
29    ;;
30esac
31
32exit 0
33

Archive Download this file



interactive