unifios-utilities/on-boot-script/examples/udm-networking/on_boot.d/05-cni-bridge.sh
Christian Neff 2677780a91
New on-boot example scripts (#275)
* [on-boot-script] Add 'shell-profile' example script

* [on-boot-script] Add 'cni-bridge' example script
2021-11-28 21:06:40 -08:00

9 lines
138 B
Bash

#!/bin/sh
## Create network bridge for CNI
ip link show cni0 > /dev/null 2>&1
if [ $? -ne 0 ]; then
ip link add cni0 type bridge
fi