An incorrect target was required and no zone was brought
up during boot.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
add)
# Handle ports of this zone that have just been added
if hotplug_event_interface_is_port_of_zone "${zone}"; then
- # Bring up the zone if it is enabled but not active, yet.
- if zone_is_enabled "${zone}" && ! zone_is_active "${zone}"; then
- zone_start "${zone}"
+ # Attach the device if the parent bridge is up
+ if zone_is_active "${zone}"; then
+ hook_port_up "${zone}" "${INTERFACE}"
fi
-
- hook_port_up "${zone}" "${INTERFACE}"
fi
;;
remove)
After=firewall-init.service network-init.service
Requires=firewall-init.service network-init.service
Wants=network.target
-Before=network.target
[Service]
Type=oneshot
[Install]
WantedBy=network.target
-Alias=network.target.wants/network@%i.service
+Alias=network.target.wants/network@%i.service multi-user.target.wants/network@%i.service