summaryrefslogtreecommitdiff
path: root/package/dbus/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/dbus/files')
-rw-r--r--package/dbus/files/dbus.init3
-rw-r--r--package/dbus/files/dbus.postinst6
2 files changed, 8 insertions, 1 deletions
diff --git a/package/dbus/files/dbus.init b/package/dbus/files/dbus.init
index dd1761271..3484c4522 100644
--- a/package/dbus/files/dbus.init
+++ b/package/dbus/files/dbus.init
@@ -1,5 +1,6 @@
#!/bin/sh
-#FWINIT 60
+#PKG dbus
+#INIT 60
. /etc/rc.conf
case $1 in
diff --git a/package/dbus/files/dbus.postinst b/package/dbus/files/dbus.postinst
new file mode 100644
index 000000000..8dd0a50c8
--- /dev/null
+++ b/package/dbus/files/dbus.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_group messagebus $gid
+add_user messagebus $(get_next_uid) $gid /var/run/dbus
+add_rcconf dbus dbus NO