From 30781bf7d64da3ecac5fc2b54b4c732c15d3032a Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 27 Jun 2022 22:32:12 +0800 Subject: [PATCH] =?UTF-8?q?vpnroute.sh=20=E7=BD=91=E5=8D=A1=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BD=AC=E4=B8=BA=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/vpnroute.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/vpnroute.sh b/script/vpnroute.sh index 740384c..f32cce2 100644 --- a/script/vpnroute.sh +++ b/script/vpnroute.sh @@ -12,7 +12,9 @@ fi cd $(dirname $0) -DEV=vpn_$(./vpncmd localhost /client /cmd accountlist | grep -e '网络适配器\|Adapter' | cut -d '|' -f 2) +ADAPTER=$(./vpncmd localhost /client /cmd accountlist | grep -e '网络适配器\|Adapter' | cut -d '|' -f 2) +ADAPTER=$(echo $ADAPTER | awk '{ print tolower($0) }') +DEV=vpn_$ADAPTER echo $DEV