Ubuntu Pastebin

Paste from xnox at Tue, 3 Mar 2015 12:20:14 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    if [ -d /run/systemd/system	]; then
	if service dbus	status >/dev/null 2>&1;	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
        fi
    else
        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
        fi
    fi
Download as text