From 4c0cd9ffc1fdf795007e5e70d8ca6e74a69b752a Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Fri, 10 Jan 2025 23:19:10 -0800 Subject: [PATCH] hosts(lt-rpi4): fix gwmp-mux startup issue when internet is unavailable --- hosts/lt-rpi4/lora/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/lt-rpi4/lora/default.nix b/hosts/lt-rpi4/lora/default.nix index 33c35d92..c01c0778 100644 --- a/hosts/lt-rpi4/lora/default.nix +++ b/hosts/lt-rpi4/lora/default.nix @@ -68,6 +68,7 @@ in wantedBy = [ "multi-user.target" ]; script = '' + set -euo pipefail TTN_IP=$(${pkgs.dnsutils}/bin/dig +short nam1.cloud.thethings.network | head -n1) sleep infinity | ${gwmp-mux}/bin/gwmp-mux \