From fd6b70d89cfa69bed26ad18713241f667144b75b Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 23 Jun 2022 18:14:27 +0200 Subject: [PATCH] pkgs/openwrt: ignore sysupgrade exit code in sshScript --- nix/pkgs/openwrt/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/pkgs/openwrt/default.nix b/nix/pkgs/openwrt/default.nix index 214ebca..8048fc1 100644 --- a/nix/pkgs/openwrt/default.nix +++ b/nix/pkgs/openwrt/default.nix @@ -27,7 +27,7 @@ in rec { #! ${pkgs.runtimeShell} -e ssh root@${address} "cat > /tmp/openwrt-image" < ${buildImage hostName}/openwrt-*-${hostName}-*-sysupgrade.bin - ssh root@${address} "sysupgrade -n /tmp/openwrt-image" + ssh root@${address} "sysupgrade -n /tmp/openwrt-image" || true # ssh hostkey will have changed after boot ssh-keygen -R ${address}