1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(wifi): add hotel_krone, install gateway-script

This commit is contained in:
Kierán Meinhardt
2020-08-26 11:32:53 +02:00
parent fc96c4981f
commit a07d7ed1e4
3 changed files with 7 additions and 1 deletions

View File

@@ -139,6 +139,10 @@ in rec {
packages = [ pkgs.python3 ];
};
default-gateway = pkgs.writers.writeDashBin "default-gateway" ''
${pkgs.iproute}/bin/ip -json route | ${pkgs.jq}/bin/jq --raw-output '.[0].gateway'
'';
betacode = pkgs.writers.writePython3Bin "betacode" {
libraries = [ pkgs.nur.repos.kmein.python3Packages.betacode ];
} ''