skip dummy network adapters
This commit is contained in:
parent
0ba0cb4b26
commit
bd2729e93b
4
install
4
install
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user