router: add some utils
This commit is contained in:
parent
dcde00c428
commit
50b22e0dcd
6
machines/router/build.sh
Executable file
6
machines/router/build.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
|
||||
mkdir output/
|
||||
|
||||
nom-build -A outputs.tftpboot -o output/result
|
3
machines/router/serve.sh
Executable file
3
machines/router/serve.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
sudo capsh --keep=1 --user="$USER" --inh='cap_net_bind_service' --addamb='cap_net_bind_service' -- -c 'tftpy_server.py -r ./output'
|
10
machines/router/shell.nix
Normal file
10
machines/router/shell.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
pkgs = import (import ./npins).nixpkgs {};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
python3.pkgs.tftpy
|
||||
minicom
|
||||
];
|
||||
|
||||
}
|
Loading…
Reference in a new issue