From a6201cb8453c64e7eea263b74d70524920e4f35d Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sat, 27 Jan 2024 12:06:57 -0500 Subject: linhes-system: lh_system_start.sh: fix nc not exiting when no connection --- linhes/linhes-system/PKGBUILD | 4 ++-- linhes/linhes-system/lh_system_start.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD index 173baf0..f5a4d5c 100755 --- a/linhes/linhes-system/PKGBUILD +++ b/linhes/linhes-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=linhes-system pkgver=9.0.0 -pkgrel=68 +pkgrel=69 arch=('x86_64') #install=$pkgname.install pkgdesc="Everything that makes LinHES a system" @@ -33,7 +33,7 @@ sha256sums=('e6eaa2fb4819fa60cb05b4d2e7328d2914af3a73028a735ec4d56e7ece33ecc0' '8b54c31b8efde3917f603c5307bebb0a2a00239ad9a983c2f5d8120003256449' 'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27' '5e6d128f879b0fe7c1a190cccd75d4e5d00afc161f3bc9e92ffa2d87242cc9df' - '0e1a8bfb874d88e28c60fe37e7c2f769d6f196c0d62e1108ffada851acfc8575' + 'd3f6a06df2ff79592fa746d91aa094cd0fd1cad72c98b4db9b6e21a86fe4583a' '6d4fb0ed1a5ed961b3a3884dce093118e50c2981a9cd5837d20abc5a6d4fd8aa' '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787' '93d664f4a46fda05d0f754d19df40cbda120e325b80c07092345b14763993833' diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh index 1a6264a..044a82c 100755 --- a/linhes/linhes-system/lh_system_start.sh +++ b/linhes/linhes-system/lh_system_start.sh @@ -67,7 +67,7 @@ function install_lh_apps(){ #install programs that are not needed on the iso #check network connection netwait=0 - while [ ! nc -zw1 1.1.1.1 443 ]; do + while ! timeout 1 nc -zw1 1.1.1.1 443; do [ $netwait -gt 12 ] && msg "Could not install apps. Check internet connection. Cancelling Setup." && exit 1 msg "Waiting for internet connectivity..." ((netwait++)) -- cgit v0.12