config BR2_PACKAGE_IFUPDOWN_SCRIPTS
bool "ifupdown scripts"
default y if BR2_ROOTFS_SKELETON_DEFAULT
- depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && !BR2_PACKAGE_OPENRC
+ depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && !BR2_PACKAGE_NETIFRC
help
Set of scripts used by ifupdown (either the standalone one,
or the busybox one) to bring network up, or tear it down.
echo " hostname \$$(hostname)"; \
) >> $(TARGET_DIR)/etc/network/interfaces
endef
+define IFUPDOWN_SCRIPTS_DHCP_OPENRC
+ echo "ifup $(IFUPDOWN_SCRIPTS_DHCP_IFACE)" \
+ > $(TARGET_DIR)/etc/ifup.$(IFUPDOWN_SCRIPTS_DHCP_IFACE)
+ echo "ifdown $(IFUPDOWN_SCRIPTS_DHCP_IFACE)" \
+ > $(TARGET_DIR)/etc/ifdown.$(IFUPDOWN_SCRIPTS_DHCP_IFACE)
+endef
endif
define IFUPDOWN_SCRIPTS_INSTALL_TARGET_CMDS
$(call SYSTEM_RSYNC,$(IFUPDOWN_SCRIPTS_PKGDIR)/network,$(TARGET_DIR)/etc/network)
endef
+define IFUPDOWN_SCRIPTS_INSTALL_INIT_OPENRC
+ $(IFUPDOWN_SCRIPTS_PREAMBLE)
+ $(IFUPDOWN_SCRIPTS_DHCP)
+ $(IFUPDOWN_SCRIPTS_DHCP_OPENRC)
+endef
+
define IFUPDOWN_SCRIPTS_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 $(IFUPDOWN_SCRIPTS_PKGDIR)/S40network \
$(TARGET_DIR)/etc/init.d/S40network