Ubuntu Pastebin

Paste from xnox at Tue, 3 Mar 2015 11:40:53 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff -Nru dbus-1.8.12/debian/dbus.postinst dbus-1.8.12/debian/dbus.postinst
--- dbus-1.8.12/debian/dbus.postinst	2014-11-24 13:46:14.000000000 +0000
+++ dbus-1.8.12/debian/dbus.postinst	2014-11-30 12:08:46.000000000 +0000
@@ -53,7 +53,8 @@
     # system bus is not supported by upstream). The code added by
     # dh_installinit -r creates a start action, below.
 
-    if [ -x "/etc/init.d/dbus" ] && /etc/init.d/dbus status > /dev/null; then
+    PID=$(status "dbus" 2>/dev/null | awk '/[0-9]$/ { print $NF }')
+    if [ -n "$PID" ]; then
         # trigger an update notification which recommends to reboot
         [ -x /usr/share/update-notifier/notify-reboot-required ] && \
             /usr/share/update-notifier/notify-reboot-required || true
Download as text