From 2f042b452e345593fce50e31959821abfc1c4fa2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 4 Dec 2015 14:39:14 +0000 Subject: orion: convert initial network configuration to board.d Signed-off-by: Jo-Philipp Wich SVN-Revision: 47759 --- .../linux/orion/base-files/etc/board.d/02_network | 15 ++++++ .../orion/base-files/etc/uci-defaults/10-network | 53 ---------------------- 2 files changed, 15 insertions(+), 53 deletions(-) create mode 100755 target/linux/orion/base-files/etc/board.d/02_network delete mode 100644 target/linux/orion/base-files/etc/uci-defaults/10-network diff --git a/target/linux/orion/base-files/etc/board.d/02_network b/target/linux/orion/base-files/etc/board.d/02_network new file mode 100755 index 0000000..96cd083 --- /dev/null +++ b/target/linux/orion/base-files/etc/board.d/02_network @@ -0,0 +1,15 @@ +#!/bin/sh + +. /lib/functions/uci-defaults-new.sh + +board_config_update + +if grep -q lan1 /proc/net/dev; then + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" +else + ucidef_set_interface_lan "eth0" +fi + +board_config_flush + +exit 0 diff --git a/target/linux/orion/base-files/etc/uci-defaults/10-network b/target/linux/orion/base-files/etc/uci-defaults/10-network deleted file mode 100644 index 5d5a585..0000000 --- a/target/linux/orion/base-files/etc/uci-defaults/10-network +++ /dev/null @@ -1,53 +0,0 @@ -config_simple() { -cat >> /etc/config/network <> /etc/config/network < /etc/config/network <