From 252e4f10b31a4251687213b1b4770a5e2c5845aa Mon Sep 17 00:00:00 2001 From: david-forster10 Date: Sun, 29 Dec 2024 14:10:35 +0000 Subject: [PATCH] Adding missing if closing statement Service is continually failing for an "unexpected end of file" error, adding in a missing if closing to resolve error --- src/modules/octopi/filesystem/root/usr/local/bin/networkcheck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/octopi/filesystem/root/usr/local/bin/networkcheck b/src/modules/octopi/filesystem/root/usr/local/bin/networkcheck index 1ae2b994..234f9557 100755 --- a/src/modules/octopi/filesystem/root/usr/local/bin/networkcheck +++ b/src/modules/octopi/filesystem/root/usr/local/bin/networkcheck @@ -2,7 +2,8 @@ CONFIG_FILE=/boot/firmware/octopi.txt # Fallback for older images if [ ! -f "${CONFIG_FILE}" ] && [ -f "/boot/octopi.txt" ]; then -CONFIG_FILE=/boot/octopi.txt + CONFIG_FILE=/boot/octopi.txt +fi source "${CONFIG_FILE}"