diff options
author | Steven Barth <steven@midlink.org> | 2014-07-18 11:03:55 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-07-18 11:03:55 +0200 |
commit | 14003935f1f57b7cc3d389ed82c52b66f05be22b (patch) | |
tree | 4ea0b01dcf5826ab9aa55a31431b048f72888529 /utils/dbus/files | |
parent | a689d930f104100db6b2f8c5434449ce4867b932 (diff) |
dbus: adopt here
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'utils/dbus/files')
-rw-r--r-- | utils/dbus/files/dbus-launch | 12 | ||||
-rw-r--r-- | utils/dbus/files/dbus.init | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/utils/dbus/files/dbus-launch b/utils/dbus/files/dbus-launch new file mode 100644 index 000000000..7c3f9228d --- /dev/null +++ b/utils/dbus/files/dbus-launch @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Simple wrapper script which allows us to build dbus without general x support +# If an application needs x support in dbus-launch it has to depend on the +# dbus-launch-x package. The script is used to prefer dbus-launch with x over +# the dbus-lauch without x. + +if [ -f /usr/bin/dbus-launch-x ]; then + exec /usr/bin/dbus-launch-x $@ +else + exec /usr/bin/dbus-launch.real $@ +fi diff --git a/utils/dbus/files/dbus.init b/utils/dbus/files/dbus.init new file mode 100644 index 000000000..429408377 --- /dev/null +++ b/utils/dbus/files/dbus.init @@ -0,0 +1,17 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2007-2011 OpenWrt.org + +START=60 + +SERVICE_PID_FILE=/var/run/dbus.pid + +start() { + mkdir -m 0755 -p /var/lib/dbus + mkdir -m 0755 -p /var/run/dbus + [ -x /usr/bin/dbus-uuidgen ] && /usr/bin/dbus-uuidgen --ensure + service_start /usr/sbin/dbus-daemon --system +} + +stop() { + service_stop /usr/sbin/dbus-daemon && rm $SERVICE_PID_FILE +} |