gdm: test if dbus daemon is ready before starting gdm

This commit is contained in:
Enno Boland 2015-09-29 17:44:10 +02:00
parent b9d6f5992e
commit 0d609be796
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
sv check dbus >/dev/null || exit 1 # Test if dbus is running
dbus-send --system / org.freedesktop.DBus.Peer.Ping >/dev/null 2>&1 || exit 1
[ ! -d /run/gdm ] && mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm [ ! -d /run/gdm ] && mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm
exec gdm exec gdm

View file

@ -1,7 +1,7 @@
# Template file for 'gdm' # Template file for 'gdm'
pkgname=gdm pkgname=gdm
version=3.16.4 version=3.16.4
revision=1 revision=2
patch_args="-Np1" patch_args="-Np1"
build_style=gnu-configure build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) configure_args="$(vopt_enable gir introspection)