From 4c712b80f13ed264b00f40c86456bdc1207c11e2 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 5 Nov 2024 13:42:27 +0300 Subject: [PATCH] run: guixsd: Make sure openwrt is started. --- dotfiles/run/guixsd/08-openwrt.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dotfiles/run/guixsd/08-openwrt.sh b/dotfiles/run/guixsd/08-openwrt.sh index b5c76e5d1..6f3e0393f 100755 --- a/dotfiles/run/guixsd/08-openwrt.sh +++ b/dotfiles/run/guixsd/08-openwrt.sh @@ -2,5 +2,12 @@ set -o nounset -o errexit -o pipefail -o xtrace -sudo virsh net-start --network br0 -sudo virsh start --domain openwrt +if sudo virsh net-start --network br0 +then + : +fi + +until sudo virsh start --domain openwrt +do + sleep 2 +done