]> git.feebdaed.xyz Git - 0xmirror/pi-hole.git/commitdiff
basic-install.sh listing interfaces
authordeHakkelaar <deHakkelaar@users.noreply.github.com>
Mon, 2 Jun 2025 01:59:36 +0000 (03:59 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Jun 2025 01:59:36 +0000 (03:59 +0200)
Following up on below one:

https://github.com/pi-hole/pi-hole/pull/6236

And below poor attempt:

https://github.com/pi-hole/pi-hole/pull/6256

Signed-off-by: deHakkelaar <deHakkelaar@users.noreply.github.com>
automated install/basic-install.sh

index 279dc1d1cb2d007fd6c662be76ecdbfb9ef36a92..dfecda9c03ccea26e68940e976f055847ffe353e 100755 (executable)
@@ -577,7 +577,7 @@ Do you wish to continue with an IPv6-only installation?\\n\\n" \
 # Get available interfaces that are UP
 get_available_interfaces() {
     # There may be more than one so it's all stored in a variable
-    availableInterfaces=$(ip --oneline link show up | awk '{print $2}' |  grep -v "^lo" | cut -d':' -f1 | cut -d'@' -f1)
+    availableInterfaces=$(ip --oneline link show up | awk -F ': |@' '!/<.*LOOPBACK.*>/ {print $2}')
 }
 
 # A function for displaying the dialogs the user sees when first running the installer