From 393077ba9ed2bb7039118e6912aa6f795c011a1c Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Tue, 18 Apr 2023 11:43:24 -0400 Subject: [PATCH] avoid docker and lo nics getting used by test profiles --- setup/so-setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index e89e4237c..4a9aca6ff 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -218,8 +218,9 @@ if [ -n "$test_profile" ]; then fi ALLOW_CIDR=0.0.0.0/0 - MNIC=$(ls -1 /sys/class/net | head -1) - BNICS=$(ls -1 /sys/class/net | head -2 | tail -1) + nic_list=$(ls -1 /sys/class/net | grep -v docker | grep -v lo) + MNIC=$(echo "$nic_list" | head -1) + BNICS=$(echo "$nic_list" | head -2 | tail -1) WEBUSER=onionuser@somewhere.invalid WEBPASSWD1=0n10nus3r WEBPASSWD2=0n10nus3r