unifios-utilities/on-boot-script-2.x/examples/udm-networking/on_boot.d/06-cni-bridge.sh
2023-02-18 19:31:32 -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