19 lines
376 B
Plaintext
19 lines
376 B
Plaintext
|
#!/bin/sh /etc/rc.common
|
||
|
# Copyright (C) 2007-2011 OpenWrt.org
|
||
|
|
||
|
START=10
|
||
|
STOP=99
|
||
|
|
||
|
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
|
||
|
}
|