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

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

SVN-Revision: 48493
master
Felix Fietkau 9 years ago
parent 1d2c63c455
commit 57776e68ce
  1. 17
      package/base-files/files/etc/board.d/99-default_network
  2. 18
      package/base-files/files/etc/config/network
  3. 3
      target/linux/adm8668/base-files.mk
  4. 3
      target/linux/ar71xx/base-files.mk
  5. 3
      target/linux/arc770/base-files.mk
  6. 5
      target/linux/at91/base-files.mk
  7. 3
      target/linux/bcm53xx/base-files.mk
  8. 3
      target/linux/brcm2708/base-files.mk
  9. 5
      target/linux/brcm47xx/base-files.mk
  10. 5
      target/linux/brcm63xx/base-files.mk
  11. 3
      target/linux/imx6/base-files.mk
  12. 3
      target/linux/ipq806x/base-files.mk
  13. 3
      target/linux/kirkwood/base-files.mk
  14. 5
      target/linux/lantiq/base-files.mk
  15. 3
      target/linux/malta/base-files.mk
  16. 3
      target/linux/mediatek/base-files.mk
  17. 5
      target/linux/mpc85xx/base-files.mk
  18. 3
      target/linux/mvebu/base-files.mk
  19. 5
      target/linux/netlogic/base-files.mk
  20. 3
      target/linux/octeon/base-files.mk
  21. 3
      target/linux/oxnas/base-files.mk
  22. 5
      target/linux/ramips/base-files.mk
  23. 3
      target/linux/sunxi/base-files.mk

@ -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

@ -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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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