forked from DGNum/liminix
seedrng #3
1 changed files with 5 additions and 1 deletions
|
@ -21,9 +21,13 @@ let
|
||||||
service = oneshot {
|
service = oneshot {
|
||||||
name = "${primary.name}.member.${member.name}";
|
name = "${primary.name}.member.${member.name}";
|
||||||
up = ''
|
up = ''
|
||||||
|
echo "attaching $(output ${member} ifname) to $(output ${primary} ifname) bridge"
|
||||||
ip link set dev $(output ${member} ifname) master $(output ${primary} ifname)
|
ip link set dev $(output ${member} ifname) master $(output ${primary} ifname)
|
||||||
'';
|
'';
|
||||||
down = "ip link set dev $(output ${member} ifname) nomaster";
|
down = ''
|
||||||
|
echo "detaching $(output ${member} ifname) from any bridge"
|
||||||
|
ip link set dev $(output ${member} ifname) nomaster
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in bundle {
|
in bundle {
|
||||||
|
|
Loading…
Reference in a new issue