lass 4: add getDefaultGateway helper function

This commit is contained in:
lassulus 2015-09-18 03:00:29 +02:00
parent b35fd2bb73
commit 79f0abfdfc

View File

@ -17,4 +17,8 @@ krebs // rec {
ln -s ${pkgs.writeScript name content} $out/bin/${name} ln -s ${pkgs.writeScript name content} $out/bin/${name}
''; '';
}; };
getDefaultGateway = ip:
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
} }