diff options
author | Sander Vanheule <sander@svanheule.net> | 2024-01-24 11:20:08 +0100 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2024-02-12 20:46:51 +0100 |
commit | 6f83a708c8f1df14da9a24609d32bd7263d1798b (patch) | |
tree | d13bf4d649b29e1ccdf81264347008649f79d658 /target/linux/realtek | |
parent | 7cbfe5654d6eeda211edb0fd6938177cbe32c5e0 (diff) | |
download | openwrt-6f83a708c8f1df14da9a24609d32bd7263d1798b.tar.gz openwrt-6f83a708c8f1df14da9a24609d32bd7263d1798b.tar.bz2 openwrt-6f83a708c8f1df14da9a24609d32bd7263d1798b.zip |
base-files: move uci_set_poe() to uci-defaults.sh
PoE devices in the realtek target have the possibility to add PSE info
to the board description via 02_network. Make this available for all
targets, by moving the uci_set_poe() function to the globally available
uci-default.sh script.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r-- | target/linux/realtek/base-files/etc/board.d/02_network | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network index 1c1e4e9cd2..db1d99f4ec 100644 --- a/target/linux/realtek/base-files/etc/board.d/02_network +++ b/target/linux/realtek/base-files/etc/board.d/02_network @@ -3,17 +3,6 @@ . /lib/functions/uci-defaults.sh . /lib/functions/system.sh -ucidef_set_poe() { - json_select_object poe - json_add_string "budget" "$1" - json_select_array ports - for port in $2; do - json_add_string "" "$port" - done - json_select .. - json_select .. -} - _filter_port_list_ordered() { local ports="$1" local excluded="$2" |