mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
overlay coreos/config: Add Flatcar modifications for net-firewall/ebtables
This commit is contained in:
parent
af168a6ea7
commit
4a4bcc7915
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/net-firewall/ebtables
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/net-firewall/ebtables
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# A hack to set ebtables to xtables-nft-multi instead of
|
||||
# ebtables-legacy.
|
||||
if [[ -z ${flatcar_hacked_eselect:-} ]]; then
|
||||
flatcar_hacked_eselect=$(command -v eselect)
|
||||
fi
|
||||
eselect() {
|
||||
if [[ ${#} -gt 2 && ${1} = 'ebtables' && ${2} = 'set' && ${3} = 'ebtables-legacy' ]]; then
|
||||
elog "Ackchyually, we are setting it to xtables-nft-multi"
|
||||
"${flatcar_hacked_eselect}" ebtables set xtables-nft-multi
|
||||
else
|
||||
"${flatcar_hacked_eselect}" "${@}"
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user