mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
Missing oled systemd file caused the service installed/running detection to fail. (#612)
This commit is contained in:
parent
423ba573cd
commit
03e7007d3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user