From 658cd1bd8f19363a037129154a4090b2de52c176 Mon Sep 17 00:00:00 2001 From: Francesco R Date: Sat, 19 Mar 2022 12:13:18 +0300 Subject: [PATCH] reversing useless change no need to reverse order while taking town wireguard, it is already like that (plus is useless since we restart systemd-resolved.service anyhow) --- wirego | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wirego b/wirego index e16a006..180a398 100755 --- a/wirego +++ b/wirego @@ -78,8 +78,7 @@ if [ "`which wg`" == "" ] ; then fi # check for active profile -# we reverse the order, to be able to turn profiles down starting from the last added -active_profiles=`sudo wg | grep interface | awk '{print $2}' | tac` +active_profiles=`sudo wg | grep interface | awk '{print $2}'` # up selected if [ "$1" == "up" ] ; then