exclude sit and ip6 network adapters for issue #107

This commit is contained in:
Aaron Murray 2022-10-02 08:03:07 -05:00
parent ba79e416c8
commit 98afe39474

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.6.23 # version: 1.6.24
# #
if [[ $(id -u) -ne 0 ]]; then if [[ $(id -u) -ne 0 ]]; then
@ -541,7 +541,7 @@ if [ ${skipNet} -ne 1 ]; then
${rfkill} unblock all ${rfkill} unblock all
fi fi
for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|lo|tun|veth|virbr|wg"); do for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|ip6|lo|sit|tun|veth|virbr|wg"); 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