Author: jow Date: 2015-12-04 16:02:13 +0100 (Fri, 04 Dec 2015) New Revision: 47761
Added: trunk/target/linux/mcs814x/base-files/etc/board.d/ trunk/target/linux/mcs814x/base-files/etc/board.d/01_leds trunk/target/linux/mcs814x/base-files/etc/board.d/02_network Removed: trunk/target/linux/mcs814x/base-files/etc/config/ trunk/target/linux/mcs814x/base-files/etc/uci-defaults/ Log: mcs814x: switch from uci-defaults to board.d Signed-off-by: Jo-Philipp Wich <[email protected]> Copied: trunk/target/linux/mcs814x/base-files/etc/board.d/01_leds (from rev 47760, trunk/target/linux/mcs814x/base-files/etc/uci-defaults/01_leds) =================================================================== --- trunk/target/linux/mcs814x/base-files/etc/board.d/01_leds (rev 0) +++ trunk/target/linux/mcs814x/base-files/etc/board.d/01_leds 2015-12-04 15:02:13 UTC (rev 47761) @@ -0,0 +1,28 @@ +#!/bin/sh +# +# Copyright (C) 2012-2015 OpenWrt.org +# + +. /lib/functions/uci-defaults-new.sh +. /lib/mcs814x.sh + +board_config_update + +board=$(mcs814x_board_name) + +case "$board" in +dlan-usb-extender) + ucidef_set_led_usbdev "usb" "USB" "dlan-usb-extender:green:usb" "2-1" + ;; +rbt-832) + ucidef_set_led_usbdev "usb1" "USB1" "rbt-832:red:usb0" "1-1" + ucidef_set_led_usbdev "usb2" "USB2" "rbt-832:red:usb1" "1-2" + ucidef_set_led_usbdev "usb3" "USB3" "rbt-832:red:usb2" "1-3" + ucidef_set_led_usbdev "usb4" "USB4" "rbt-832:red:usb3" "1-4" + ucidef_set_led_netdev "eth" "eth" "rbt-832:red:ethernet" "eth0" + ;; +esac + +board_config_flush + +exit 0 Property changes on: trunk/target/linux/mcs814x/base-files/etc/board.d/01_leds ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Copied: trunk/target/linux/mcs814x/base-files/etc/board.d/02_network (from rev 47760, trunk/target/linux/oxnas/base-files/etc/board.d/02_network) =================================================================== --- trunk/target/linux/mcs814x/base-files/etc/board.d/02_network (rev 0) +++ trunk/target/linux/mcs814x/base-files/etc/board.d/02_network 2015-12-04 15:02:13 UTC (rev 47761) @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Copyright (C) 2015 OpenWrt.org +# + +. /lib/functions/uci-defaults-new.sh + +board_config_update +ucidef_set_interface_lan "eth0" +board_config_flush + +exit 0 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
