lass 4: add getDefaultGateway helper function
This commit is contained in:
parent
b35fd2bb73
commit
79f0abfdfc
@ -17,4 +17,8 @@ krebs // rec {
|
||||
ln -s ${pkgs.writeScript name content} $out/bin/${name}
|
||||
'';
|
||||
};
|
||||
|
||||
getDefaultGateway = ip:
|
||||
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user