aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-16 12:18:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-16 12:18:34 +0000
commitc64fdadea7292bf117668bfe5d254f7c6eeeb62e (patch)
tree060aae016fdf3d334a305813445c957b4d442607 /target/linux
parenta0ced5164a6180de55946565fb4a7237948c93bb (diff)
downloadupstream-c64fdadea7292bf117668bfe5d254f7c6eeeb62e.tar.gz
upstream-c64fdadea7292bf117668bfe5d254f7c6eeeb62e.tar.bz2
upstream-c64fdadea7292bf117668bfe5d254f7c6eeeb62e.zip
bcm53xx: make use of the new board detection layer
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45458
Diffstat (limited to 'target/linux')
-rwxr-xr-x[-rw-r--r--]target/linux/bcm53xx/base-files/etc/board.d/02_network (renamed from target/linux/bcm53xx/base-files/etc/uci-defaults/02_network)8
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network
index 9ffb427d1c..c36b47ca4d 100644..100755
--- a/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network
@@ -3,11 +3,9 @@
# Copyright (C) 2011 OpenWrt.org
#
-[ -e /etc/config/network ] && exit 0
+. /lib/functions/uci-defaults-new.sh
-touch /etc/config/network
-
-. /lib/functions/uci-defaults.sh
+board_config_update
ucidef_set_interface_loopback
@@ -32,6 +30,6 @@ else
ucidef_add_switch_vlan "switch0" "2" "4 5t"
fi
-uci commit network
+board_config_flush
exit 0