From 260e0c19b9066640e7a2673f13be96cccf37641b Mon Sep 17 00:00:00 2001 From: MakiseKurisu Date: Wed, 24 Jul 2024 23:41:51 +0800 Subject: [PATCH] fix: set up control socket before running commands https://discourse.nixos.org/t/dewclaw-semi-declarative-openwrt-configurations/33993/8?u=makisekurisu --- openwrt/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/openwrt/default.nix b/openwrt/default.nix index f47f5d2..2fe925e 100644 --- a/openwrt/default.nix +++ b/openwrt/default.nix @@ -229,6 +229,7 @@ let # apply the new config and wait for the box to go down via ssh connection # timeout. log 'applying config' + ssh -Nf if $RELOAD_ONLY; then ssh 'logread -l9999 -f' & ssh '/etc/init.d/config_generation prepare_reload'