2022-02-23 20:43:06 +00:00
|
|
|
if [[ ${DISTRO_NAME} =~ (centos|fedora|rocky) ]]; then
|
2019-10-03 00:19:19 +00:00
|
|
|
export DIB_SIMPLE_INIT_NETWORKMANAGER=${DIB_SIMPLE_INIT_NETWORKMANAGER:-1}
|
|
|
|
else
|
|
|
|
export DIB_SIMPLE_INIT_NETWORKMANAGER=${DIB_SIMPLE_INIT_NETWORKMANAGER:-0}
|
|
|
|
fi
|
|
|
|
|
2022-02-23 20:43:06 +00:00
|
|
|
if [[ (${DISTRO_NAME} == "centos" || ${DISTRO_NAME} == "rocky") && $DIB_RELEASE > 7 ]] || [[ ${DISTRO_NAME} == "fedora" ]]; then
|
2019-10-03 00:19:19 +00:00
|
|
|
if [[ $DIB_SIMPLE_INIT_NETWORKMANAGER == 0 ]]; then
|
2022-02-23 20:43:06 +00:00
|
|
|
echo "simple-init only supports NetworkManager mode on Fedora and CentOS/Rocky 8"
|
2019-10-03 00:19:19 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|