mirror of
https://github.com/garywill/linux-router.git
synced 2025-11-08 16:14:03 +01:00
get_pid_by_dbus_name() : fix stderr show
This commit is contained in:
parent
c376609896
commit
fbad56f05c
2
lnxrouter
Normal file → Executable file
2
lnxrouter
Normal file → Executable file
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user