allow fd-interface to be unknown or down

main
n0emis 3 years ago
parent 864c1856b8
commit f79005db6f
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -107,7 +107,7 @@ let
requiredBy = [ "fastd-${mkIfName "fastd"}.service" ];
script = ''
timeout 30 ${pkgs.bash}/bin/sh -c 'while ! ${pkgs.iproute2}/bin/ip link show dev ${mkIfName "fastd"} | grep UNKNOWN ; do sleep 1; done'
timeout 30 ${pkgs.bash}/bin/sh -c 'while ! ${pkgs.iproute2}/bin/ip link show dev ${mkIfName "fastd"} | grep -e UNKNOWN -e DOWN ; do sleep 1; done'
${pkgs.batctl-legacy}/bin/batctl -m ${mkIfName "batman"} interface add ${mkIfName "fastd"} || true
${pkgs.batctl-legacy}/bin/batctl -m ${mkIfName "batman"} gw_mode server || true
'';

Loading…
Cancel
Save