forked from DGNum/liminix
5590fea16e
This enable to wait for bridgeability of a WLAN interface via `iwinfo`. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
14 lines
335 B
Nix
14 lines
335 B
Nix
{
|
|
lua
|
|
, netlink-lua
|
|
, lualinux
|
|
, iwinfo
|
|
, writeFennelScript
|
|
, runCommand
|
|
, anoia
|
|
}:
|
|
runCommand "ifwait" {} ''
|
|
mkdir -p $out/bin
|
|
cp -p ${writeFennelScript "ifwait" [ anoia netlink-lua ] ./ifwait.fnl} $out/bin/ifwait
|
|
cp -p ${writeFennelScript "ifbridgeable" [ anoia lualinux iwinfo ] ./ifbridgeable.fnl} $out/bin/ifbridgeable
|
|
''
|