forked from DGNum/liminix
allow interface service to specify dependencies
This commit is contained in:
parent
f2e5f65149
commit
3e1082ad18
1 changed files with 2 additions and 1 deletions
|
@ -4,10 +4,11 @@
|
||||||
}:
|
}:
|
||||||
let inherit (liminix.services) oneshot longrun;
|
let inherit (liminix.services) oneshot longrun;
|
||||||
in {
|
in {
|
||||||
interface = { type, device } @ args: oneshot {
|
interface = { type, device, dependencies ? [] } @ args: oneshot {
|
||||||
name = "${device}.link";
|
name = "${device}.link";
|
||||||
up = "ip link set up dev ${device}";
|
up = "ip link set up dev ${device}";
|
||||||
down = "ip link set down dev ${device}";
|
down = "ip link set down dev ${device}";
|
||||||
|
inherit dependencies;
|
||||||
} // {
|
} // {
|
||||||
inherit device;
|
inherit device;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue