forked from dan/liminix
allow interface service to specify dependencies
This commit is contained in:
parent
f2e5f65149
commit
3e1082ad18
@ -4,10 +4,11 @@
|
||||
}:
|
||||
let inherit (liminix.services) oneshot longrun;
|
||||
in {
|
||||
interface = { type, device } @ args: oneshot {
|
||||
interface = { type, device, dependencies ? [] } @ args: oneshot {
|
||||
name = "${device}.link";
|
||||
up = "ip link set up dev ${device}";
|
||||
down = "ip link set down dev ${device}";
|
||||
inherit dependencies;
|
||||
} // {
|
||||
inherit device;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user