#!/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/cups_client - deinstall script # # Creation : 2022-05-18 holbru # Last update: $Id$ # # Copyright (c) 2022-@@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=cups_client # check for update is given if [ "${1}" = "--update" ] then update=true fi # --------------------------------------------------------------------------- # remove config and check file # --------------------------------------------------------------------------- rm -f /etc/default.d/cups rm -f /etc/check.d/cups rm -f /etc/check.d/cups.* # --------------------------------------------------------------------------- # stop for update only # --------------------------------------------------------------------------- if ${update:-false} then exit 0 fi # --------------------------------------------------------------------------- # remove package from menu system # --------------------------------------------------------------------------- /var/install/bin/del-menu \ setup.services.menu \ setup.services.cups.menu # --------------------------------------------------------------------------- # remove config file # --------------------------------------------------------------------------- configfiles="/etc/config.d/cups /etc/backup.d/cups.*" for cfile in ${configfiles} do rm -f ${cfile} done exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------