From 205e3440342dbd4e119b70b53bfaf9eef50d8482 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Tue, 28 Feb 2023 15:40:08 -0500 Subject: [PATCH] dynamically choose test NICs in alphanumeric sort order --- setup/so-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 69cbfbee1..9f386c4a6 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -208,8 +208,8 @@ if [ -n "$test_profile" ]; then fi ALLOW_CIDR=0.0.0.0/0 - MNIC=eth0 - BNICS=eth1 + MNIC=$(ls -1 /sys/class/net | head -1) + BNICS=$(ls -1 /sys/class/net | head -2 | tail -1) WEBUSER=onionuser@somewhere.invalid WEBPASSWD1=0n10nus3r WEBPASSWD2=0n10nus3r