HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //usr/syno/sbin/syno-dbus-check.sh
#!/bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin
dbus_type=$1

if [ "session" != "$dbus_type" -a "system" != "$dbus_type" ]; then
	exit 1
fi

for i in $(seq 1 60)
do
	dbus-send --"$dbus_type" --type=method_call --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.Introspectable.Introspect
	if [ 0 = $? ]; then
		exit 0
	fi
	sleep 1
done

exit 1