Author: jow Date: 2015-12-03 23:42:09 +0100 (Thu, 03 Dec 2015) New Revision: 47734
Added: trunk/target/linux/octeon/base-files/etc/board.d/ trunk/target/linux/octeon/base-files/etc/board.d/00_model trunk/target/linux/octeon/base-files/etc/board.d/01_network Removed: trunk/target/linux/octeon/base-files/etc/uci-defaults/ Log: octeon: switch from uci-defaults to board.d Signed-off-by: Jo-Philipp Wich <[email protected]> Copied: trunk/target/linux/octeon/base-files/etc/board.d/00_model (from rev 47733, trunk/target/linux/mvebu/base-files/etc/board.d/00_model) =================================================================== --- trunk/target/linux/octeon/base-files/etc/board.d/00_model (rev 0) +++ trunk/target/linux/octeon/base-files/etc/board.d/00_model 2015-12-03 22:42:09 UTC (rev 47734) @@ -0,0 +1,13 @@ +#!/bin/sh +# Copyright (C) 2015 OpenWrt.org + +. /lib/functions/uci-defaults-new.sh + +board_config_update + +ucidef_set_board_id "$(cat /tmp/sysinfo/board_name)" +ucidef_set_model_name "$(cat /tmp/sysinfo/model)" + +board_config_flush + +exit 0 Added: trunk/target/linux/octeon/base-files/etc/board.d/01_network =================================================================== --- trunk/target/linux/octeon/base-files/etc/board.d/01_network (rev 0) +++ trunk/target/linux/octeon/base-files/etc/board.d/01_network 2015-12-03 22:42:09 UTC (rev 47734) @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Copyright (C) 2014-2015 OpenWrt.org +# + +. /lib/functions/uci-defaults-new.sh +. /lib/functions/octeon.sh + +board_config_update + +board=$(octeon_board_name) + +case "$board" in +erlite) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ;; + +*) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ;; +esac + +board_config_flush + +exit 0 Property changes on: trunk/target/linux/octeon/base-files/etc/board.d/01_network ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
