add usb0 metric

pull/1283/head
john doe 2024-01-27 17:48:56 +08:00 committed by GitHub
parent f444114ea6
commit 91cdbadccf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -78,8 +78,10 @@ case "$1" in
metric=0 metric=0
elif [ $interface = "wlan0" ]; then elif [ $interface = "wlan0" ]; then
metric=10 metric=10
else elif [ $interface = "usb0" ]; then
metric=20 metric=20
else
metric=30
fi fi
route add default gw $i dev $interface metric $metric route add default gw $i dev $interface metric $metric
done done