#! /bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/dbus-1 - deinstall script # # Creation : 2015-08-17 holbru # Last update: $Id$ # # Copyright (c) 2015-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # set package name package_name=dbus-1 # check for update is given if [ "${1}" = "--update" ] then update=true fi # --------------------------------------------------------------------------- # stop daemon # --------------------------------------------------------------------------- if [ ! -x /usr/bin/systemctl ] then /etc/init.d/dbus stop fi # --------------------------------------------------------------------------- # stop for update only # --------------------------------------------------------------------------- if ${update:-false} then exit 0 fi # --------------------------------------------------------------------------- # remove user/group # --------------------------------------------------------------------------- /var/install/bin/remove-user -f messagebus y >/dev/null /var/install/bin/remove-group -f messagebus >/dev/null exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------