unetd: add cli module
This vastly simplifies creating and managing unet networks. It also adds support for the unetd protocol for onboarding new nodes over the network. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
248b66b44f
commit
f7c5a2b7d4
2 changed files with 1228 additions and 0 deletions
|
@ -80,6 +80,7 @@ endef
|
||||||
|
|
||||||
define Package/unetd/install
|
define Package/unetd/install
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
|
$(1)/usr/share/ucode/cli/modules \
|
||||||
$(1)/etc/unetd \
|
$(1)/etc/unetd \
|
||||||
$(1)/lib/bpf \
|
$(1)/lib/bpf \
|
||||||
$(1)/etc/init.d \
|
$(1)/etc/init.d \
|
||||||
|
@ -92,6 +93,7 @@ define Package/unetd/install
|
||||||
$(PKG_INSTALL_DIR)/usr/sbin/unet-tool \
|
$(PKG_INSTALL_DIR)/usr/sbin/unet-tool \
|
||||||
$(1)/usr/sbin/
|
$(1)/usr/sbin/
|
||||||
$(if $(CONFIG_UNETD_VXLAN_SUPPORT),$(INSTALL_DATA) $(PKG_BUILD_DIR)/mss-bpf.o $(1)/lib/bpf/mss.o)
|
$(if $(CONFIG_UNETD_VXLAN_SUPPORT),$(INSTALL_DATA) $(PKG_BUILD_DIR)/mss-bpf.o $(1)/lib/bpf/mss.o)
|
||||||
|
$(INSTALL_DATA) ./files/unet.uc $(1)/usr/share/ucode/cli/modules
|
||||||
$(INSTALL_BIN) ./files/unetd.init $(1)/etc/init.d/unetd
|
$(INSTALL_BIN) ./files/unetd.init $(1)/etc/init.d/unetd
|
||||||
$(INSTALL_BIN) ./files/unetd.sh $(1)/lib/netifd/proto
|
$(INSTALL_BIN) ./files/unetd.sh $(1)/lib/netifd/proto
|
||||||
endef
|
endef
|
||||||
|
|
1226
package/network/services/unetd/files/unet.uc
Normal file
1226
package/network/services/unetd/files/unet.uc
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue