Rename iproute to iproute2
This commit is contained in:
parent
2ea65edb28
commit
8e88a26cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ in
|
|||
"custom/vpn" = {
|
||||
interval = 10;
|
||||
exec = pkgs.writeShellScript "vpn-state" ''
|
||||
${pkgs.iproute}/bin/ip -j link \
|
||||
${pkgs.iproute2}/bin/ip -j link \
|
||||
| ${pkgs.jq}/bin/jq --unbuffered --compact-output '
|
||||
[[.[].ifname | select(. | startswith("mullvad"))][] | split("-")[1] + " ${thinsp}"] as $conns
|
||||
| { text: ($conns[0] // ""), class: (if $conns | length > 0 then "connected" else "disconnected" end) }'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue