From 03e7007d3ade741297018558285e651d0bf31ac9 Mon Sep 17 00:00:00 2001 From: Benjamin Zeiss Date: Mon, 17 Jan 2022 06:11:21 +0100 Subject: [PATCH] Missing oled systemd file caused the service installed/running detection to fail. (#612) --- easyinstall.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easyinstall.sh b/easyinstall.sh index 6dbf6901..25c67909 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -318,6 +318,8 @@ function isRaScsiScreenInstalled() { sudo systemctl is-enabled --quiet rascsi-oled.service >/dev/null 2>&1 || SERVICE_RASCSI_OLED_ENABLED=$? elif [[ -f "$SYSTEMD_PATH/monitor_rascsi.service" ]]; then sudo systemctl is-enabled --quiet monitor_rascsi.service >/dev/null 2>&1 || SERVICE_RASCSI_OLED_ENABLED=$? + else + SERVICE_RASCSI_OLED_ENABLED=1 fi echo $SERVICE_RASCSI_OLED_ENABLED @@ -330,6 +332,8 @@ function isRaScsiScreenRunning() { sudo systemctl is-active --quiet rascsi-oled.service >/dev/null 2>&1 || SERVICE_RASCSI_OLED_RUNNING=$? elif [[ -f "$SYSTEMD_PATH/monitor_rascsi.service" ]]; then sudo systemctl is-active --quiet monitor_rascsi.service >/dev/null 2>&1 || SERVICE_RASCSI_OLED_RUNNING=$? + else + SERVICE_RASCSI_OLED_RUNNING=1 fi echo $SERVICE_RASCSI_OLED_RUNNING