exclude wireguard interfaces

This commit is contained in:
Aaron Murray 2021-02-08 10:55:25 -06:00
parent 33403ec8a0
commit f4131df01a

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.2.14
# version: 1.2.15
#
if [[ $(id -u) -ne 0 ]]; then
@ -482,7 +482,7 @@ if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then
${rfkill} unblock all
fi
for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|lo|tun|virbr"); do
for nic in $(ls /sys/class/net | grep -vE "br-|docker|dummy|lo|tun|virbr|wg"); do
if grep -q "<devicename>${nic}</devicename>" ${OMV_CONFIG_FILE}; then
echo "${nic} already found in database. Skipping..."
continue