forked from DGNum/liminix
14 lines
223 B
Nix
14 lines
223 B
Nix
{
|
|
ifwait
|
|
, serviceFns
|
|
}:
|
|
{
|
|
ifup = name : ifname : ''
|
|
. ${serviceFns}
|
|
${ifwait}/bin/ifwait -v ${ifname} present
|
|
ip link set up dev ${ifname}
|
|
(in_outputs ${name}
|
|
echo ${ifname} > ifname
|
|
)
|
|
'';
|
|
}
|