skip veth adapters

This commit is contained in:
Aaron Murray 2022-09-26 08:40:38 -05:00
parent f8e4ad5ec1
commit ba79e416c8

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.6.22
# version: 1.6.23
#
if [[ $(id -u) -ne 0 ]]; then
@ -541,7 +541,7 @@ if [ ${skipNet} -ne 1 ]; then
${rfkill} unblock all
fi
for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|lo|tun|virbr|wg"); do
for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|lo|tun|veth|virbr|wg"); do
if grep -q "<devicename>${nic}</devicename>" ${OMV_CONFIG_FILE}; then
echo "${nic} already found in database. Skipping..."
continue