dbus: adopt here

Signed-off-by: Steven Barth <steven@midlink.org>
This commit is contained in:
Steven Barth
2014-07-18 11:03:55 +02:00
parent a689d930f1
commit 14003935f1
3 changed files with 217 additions and 0 deletions
+17
View File
@@ -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
}