forked from freifunk-franken/firmware
Adrian Schmutzler
4dbf136a31
This writes CLIENT/BATMAN/WAN port configurations for devices with switches to a separate file. This file can be changed based on the desired setup and is then preserved during firmware upgrade. In case of a future bugfix concerning the entries of a specific network.* file, this will still be effective as only the port configurations reside in the new file, while the other settings could be overwritten by the upgrade. For one- and two-port devices, adjustments have been made so that their relevant settings also reside in the new file now. This also adds a WebUI interface for setting the two-port devices (CPE210 and CPE510). Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Tim Niemeyer <tim@tn-x.org> Signed-off-by: Tim Niemeyer <tim@tn-x.org> - Changed doc in network.mode
41 lines
768 B
Makefile
41 lines
768 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-network
|
|
PKG_VERSION:=8
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-network
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/fff-network
|
|
SECTION:=base
|
|
CATEGORY:=Freifunk
|
|
TITLE:= Freifunk-Franken network configuration
|
|
URL:=http://www.freifunk-franken.de
|
|
DEPENDS:=+fff-uradvd +fff-boardname
|
|
endef
|
|
|
|
define Package/fff-network/description
|
|
This package configures the network interfaces
|
|
endef
|
|
|
|
define Build/Prepare
|
|
echo "all: " > $(PKG_BUILD_DIR)/Makefile
|
|
endef
|
|
|
|
define Build/Configure
|
|
# nothing
|
|
endef
|
|
|
|
define Build/Compile
|
|
# nothing
|
|
endef
|
|
|
|
define Package/fff-network/install
|
|
$(CP) ./files/* $(1)/
|
|
test -d ./$(BOARD) && $(CP) ./$(BOARD)/* $(1)/etc/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,fff-network))
|