vpnroute.sh 网卡名称转为小写

This commit is contained in:
2022-06-27 22:32:12 +08:00
parent 6f75857fd7
commit 30781bf7d6

View File

@@ -12,7 +12,9 @@ fi
cd $(dirname $0) 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 echo $DEV