base-files: remove default /etc/config/network, generate it via board.d instead

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48493
lede-17.01
Felix Fietkau 2016-01-25 16:30:41 +00:00
parent 1d2c63c455
commit 57776e68ce
23 changed files with 17 additions and 95 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
#
# Copyright (C) 2013-2015 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
board_config_update
json_is_a network object && exit 0
ucidef_set_interface_lan 'eth0'
[ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1'
board_config_flush
exit 0

View File

@ -1,18 +0,0 @@
# Copyright (C) 2006 OpenWrt.org
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option ifname eth0
option type bridge
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
option ip6assign 60
config globals globals
option ula_prefix auto

View File

@ -1,3 +0,0 @@
#define Package/base-files/install-target
# rm -f $(1)/etc/config/network
#endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,5 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef

View File

@ -1,3 +0,0 @@
define Package/base-files/install-target
rm -f $(1)/etc/config/network
endef