1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

ensure loader patterns everywhere

This commit is contained in:
bbedward
2025-08-13 14:06:12 -04:00
parent f64dd538d5
commit 141dd7c66b
8 changed files with 224 additions and 103 deletions

View File

@@ -745,15 +745,15 @@ Singleton {
if (type === "wifi") {
setRouteMetrics.command = ["bash", "-c",
"nmcli -t -f NAME,TYPE connection show | grep 802-11-wireless | cut -d: -f1 | " +
"xargs -I {} nmcli connection modify {} ipv4.route-metric 50; " +
"xargs -I {} bash -c 'nmcli connection modify \"{}\" ipv4.route-metric 50 ipv6.route-metric 50'; " +
"nmcli -t -f NAME,TYPE connection show | grep 802-3-ethernet | cut -d: -f1 | " +
"xargs -I {} nmcli connection modify {} ipv4.route-metric 100"]
"xargs -I {} bash -c 'nmcli connection modify \"{}\" ipv4.route-metric 100 ipv6.route-metric 100'"]
} else if (type === "ethernet") {
setRouteMetrics.command = ["bash", "-c",
"nmcli -t -f NAME,TYPE connection show | grep 802-3-ethernet | cut -d: -f1 | " +
"xargs -I {} nmcli connection modify {} ipv4.route-metric 50; " +
"xargs -I {} bash -c 'nmcli connection modify \"{}\" ipv4.route-metric 50 ipv6.route-metric 50'; " +
"nmcli -t -f NAME,TYPE connection show | grep 802-11-wireless | cut -d: -f1 | " +
"xargs -I {} nmcli connection modify {} ipv4.route-metric 100"]
"xargs -I {} bash -c 'nmcli connection modify \"{}\" ipv4.route-metric 100 ipv6.route-metric 100'"]
}
setRouteMetrics.running = true
}
@@ -763,6 +763,7 @@ Singleton {
running: false
onExited: (exitCode) => {
console.log("Set route metrics process exited with code:", exitCode)
if (exitCode === 0) {
restartConnections.running = true
}