From 995896e7dd0a481a84e6191419a60dc5c5dba10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Sat, 22 Jun 2024 09:17:45 +0800 Subject: [PATCH] update ubus-status.sh --- configfiles/ubus-status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configfiles/ubus-status.sh b/configfiles/ubus-status.sh index 8232fae..998bc7d 100644 --- a/configfiles/ubus-status.sh +++ b/configfiles/ubus-status.sh @@ -24,7 +24,7 @@ check_ubus() { local dbus_status=$(/etc/init.d/dbus status 2>&1) local status_code=$(curl -o /dev/null -s -w "%{http_code}\n" http://127.0.0.1/cgi-bin/luci/ 2>/dev/null) if [ -z "$status_code" ]; then - local status_code="ERROR" + status_code="ERROR" fi if [[ "$status_code" == 500 || "$status_code" == 502 ]] && echo "$dbus_status" | grep -q "running"; then