From fbad56f05ca79e7450c8a62090dfe84f28f84d6a Mon Sep 17 00:00:00 2001 From: garywill Date: Sat, 20 Apr 2024 20:48:05 +0800 Subject: [PATCH] get_pid_by_dbus_name() : fix stderr show --- lnxrouter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lnxrouter diff --git a/lnxrouter b/lnxrouter old mode 100644 new mode 100755 index c9a1f26..7d4c7b4 --- a/lnxrouter +++ b/lnxrouter @@ -862,7 +862,7 @@ get_pid_by_dbus_name() { which dbus-send >/dev/null 2>&1 || return 1 - pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME | grep " uint32 " | awk '{print $2}' )" 2>/dev/null + pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME 2>/dev/null | grep " uint32 " | awk '{print $2}' )" r=$? echo "$pid"