From 2a20eed426fd779e9a2b1e206a61237743e9d376 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 11 Jun 2021 13:35:36 +0200 Subject: [PATCH] Add comment --- arch-config/etc/wireguard/vpn-routes.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/arch-config/etc/wireguard/vpn-routes.sh b/arch-config/etc/wireguard/vpn-routes.sh index a56e1507..51cbf3b8 100755 --- a/arch-config/etc/wireguard/vpn-routes.sh +++ b/arch-config/etc/wireguard/vpn-routes.sh @@ -2,6 +2,7 @@ set -euo pipefail # creates an array of all network devices +# NOTE only matches wlp[0-9]s[0-9].* and enp[0-9]s[0-9].* #readarray -t interfaces < <(ip l | awk -F ":" '/^[0-9]+:/{dev=$2 ; if ( dev !~ /^ lo$/ && dev !~ /^ vmnet.*/) {print $2}}') readarray -t interfaces < <(ip l | awk -F ":" '/^[0-9]+:/{dev=$2 ; if ( dev ~ /^ wlp[0-9]s[0-9].*$/ || dev ~ /^ enp[0-9]s[0-9].*/) {print $2}}')