replace waitup with more generally useful ifwait
* wait for $interface present before ip link set up dev * wait for wlan0 running before adding to bridge
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
callPackage
|
||||
, liminix
|
||||
, ifwait
|
||||
, lib
|
||||
}:
|
||||
let
|
||||
@@ -12,6 +13,7 @@ in {
|
||||
[]
|
||||
++ optional (type == "bridge")
|
||||
"ip link add name ${device} type bridge"
|
||||
++ ["${ifwait}/bin/ifwait -v ${device} present"]
|
||||
++ ["ip link set up dev ${device}"]
|
||||
++ optional (primary != null)
|
||||
"ip link set dev ${device} master ${primary.device}";
|
||||
|
Reference in New Issue
Block a user