skip dummy network adapters

This commit is contained in:
Aaron Murray 2020-05-27 08:28:35 -05:00
parent 0ba0cb4b26
commit bd2729e93b

View File

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