mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-27 23:54:06 +02:00
Update basic-install.sh
Added comments
This commit is contained in:
parent
6130b800e3
commit
86bdae0076
@ -577,6 +577,9 @@ 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
|
||||
# The ip command list all interfaces that are in the up state
|
||||
# The awk command filters out any interfaces that have the LOOPBACK flag set
|
||||
# while using the characters ": " or "@" as a field separator for awk
|
||||
availableInterfaces=$(ip --oneline link show up | awk -F ': |@' '!/<.*LOOPBACK.*>/ {print $2}')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user