Skip to content
Snippets Groups Projects
Commit fa244a12 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

base-files: remove IPv6 LL addr from interfaces before adding them to a bridge

SVN-Revision: 21659
parent c890f0d4
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,15 @@ prepare_interface() { ...@@ -164,6 +164,15 @@ prepare_interface() {
local macaddr local macaddr
config_get macaddr "$config" macaddr config_get macaddr "$config" macaddr
[ -x /usr/sbin/brctl ] && { [ -x /usr/sbin/brctl ] && {
# Remove IPv6 link local addr before adding the iface to the bridge
local llv6="$(ifconfig "$iface")"
case "$llv6" in
*fe80:*/64*)
llv6="${llv6#* fe80:}"
ifconfig "$iface" del "fe80:${llv6%% *}"
;;
esac
ifconfig "br-$config" 2>/dev/null >/dev/null && { ifconfig "br-$config" 2>/dev/null >/dev/null && {
local newdevs devices local newdevs devices
config_get devices "$config" device config_get devices "$config" device
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment