diff options
Diffstat (limited to 'target/linux/bmips/bcm6328/base-files')
3 files changed, 45 insertions, 0 deletions
diff --git a/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network b/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network new file mode 100644 index 0000000000..792926fcf2 --- /dev/null +++ b/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +. /lib/functions/uci-defaults.sh + +board_config_update + +case "$(board_name)" in +comtrend,ar-5387un) + ucidef_set_bridge_device switch + ucidef_set_interface_lan "lan1 lan2 lan3 lan4" + ;; +esac + +board_config_flush + +exit 0 diff --git a/target/linux/bmips/bcm6328/base-files/etc/uci-defaults/09_fix_crc b/target/linux/bmips/bcm6328/base-files/etc/uci-defaults/09_fix_crc new file mode 100644 index 0000000000..3909947be6 --- /dev/null +++ b/target/linux/bmips/bcm6328/base-files/etc/uci-defaults/09_fix_crc @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +. /lib/functions.sh + +case "$(board_name)" in +comtrend,ar-5387un) + mtd fixtrx firmware + ;; +esac + +exit 0 diff --git a/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh b/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..eb1d7fd0e5 --- /dev/null +++ b/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +. /lib/upgrade/cfe-jffs2-nand.sh + +PART_NAME=firmware +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + return 0 +} + +platform_do_upgrade() { + case "$(board_name)" in + *) + default_do_upgrade "$1" + ;; + esac +} |