Commit Graph

11 Commits

Author SHA1 Message Date
Michael Tremer
58d471a4a8 network-hotplug-bridges: Fix warning when address doesn't exist
Some devices do not have an address, which prints an error when reading
it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 15:17:50 +00:00
Daniel Weismüller
73476dd9dc Drop support for macvtap
This has been broken because of other changes on the network scripts and
since we now have support for bridges there is no point in supporting
something else that has the same functionality.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:19:55 +00:00
Daniel Weismüller
fa4905addf udev: Set all wireless interfaces to master mode before adding to bridge
This patch changes that instead of only the wireless interface that is
used to run a wireless access point, all wireless interfaces will be set
to master mode.

This allows that attaching the interface won't fail if hostapd isn't
started, yet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:17:57 +00:00
Michael Tremer
502f6c63a3 network-hotplug-bridges: Fix logical error in STP_PRIORITY check
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 17:09:10 +00:00
Daniel Weismüller
82973fae14 network-hotplug-bridges: Apply STP_PRIORITY
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-20 19:59:31 +00:00
Daniel Weismüller
f8bf19c92e Core 152: the script "network-hotplug-bridges" now reads the variable ${ZONE}_STP from /var/ipfire/ethernet/settings so that STP can be turned on and off for each bridge
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-20 13:46:27 +00:00
Michael Tremer
b53d8ae99b udev: Set wireless interfaces into AP mode before adding to bridge
Wireless interfaces cannot be added to the bridge when they are
still running in station mode. At boot time, the interface will
be created and it is attempted to attach it to a bridge, which
fails.

This patch now checks whether the wireless interface is going to
be an access point, changes the mode accordingly and then attaches
the interface to the bridge.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-16 15:31:06 +00:00
Michael Tremer
943eab6695 udev: Add more logging to bridge hotplug script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-16 15:31:04 +00:00
Jonatan Schlag
593de24f30 Use a better naming scheme for physical devices.
Instead of orange0phys we should use orangephys0 this patch implements
the necessary changes.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-31 14:05:56 +00:00
Jonatan Schlag
c2336f6bed Use MAC addresses to define a slave
It is now also possible to use the MAC address to define a slave of a
bridge.
Simply add the mac address to the ZONE_SLAVES=''.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-31 14:05:54 +00:00
Jonatan Schlag
3fbf7bed79 network: Rename MACVTAP script
This script is creating common bridges now, too and therefore
needs a more generic name.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-29 20:34:22 +00:00