OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | |||
3 | [ -e /etc/config/ubootenv ] && exit 0 |
||
4 | |||
5 | touch /etc/config/ubootenv |
||
6 | |||
7 | . /lib/uboot-envtools.sh |
||
8 | . /lib/functions.sh |
||
9 | |||
10 | board=$(board_name) |
||
11 | |||
12 | case "$board" in |
||
13 | ocedo,panda) |
||
14 | ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000" |
||
15 | ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" |
||
16 | ;; |
||
17 | esac |
||
18 | |||
19 | config_load ubootenv |
||
20 | config_foreach ubootenv_add_app_config ubootenv |
||
21 | |||
22 | exit 0 |