#!/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/bonding - uninstall file # # Copyright (c) 2004 Jens Vehlhaber # # Creation: 14.05.2005 jv # Last Update: $Id$ # # 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. #---------------------------------------------------------------------------- package_name=`basename $0` param=$1 ### ------------------------------------------------------------------------- ### stop deamon ### ------------------------------------------------------------------------- if [ -f /etc/init.d/${package_name} ] then /etc/init.d/${package_name} stop fi ### ------------------------------------------------------------------------- ### remove start script and links ### ------------------------------------------------------------------------- rm -f /etc/init.d/${package_name} rm -f /etc/rc2.d/S??${package_name} rm -f /etc/rc2.d/K??${package_name} ### ------------------------------------------------------------------------- ### remove config and check file ### ------------------------------------------------------------------------- rm -f /etc/default.d/${package_name} rm -f /etc/check.d/${package_name}* rm -f /etc/filelist.d/${package_name}-files.txt ### ------------------------------------------------------------------------- ### remove program files ### ------------------------------------------------------------------------- ### ------------------------------------------------------------------------- ### remove counter file ### ------------------------------------------------------------------------- rm -f /var/run/bonding.pid ### ------------------------------------------------------------------------- ### remove doc files ### ------------------------------------------------------------------------- rm -rf /usr/share/doc/${package_name} ### ------------------------------------------------------------------------- ### remove all menu and setup files ### ------------------------------------------------------------------------- rm -f /var/install/bin/${package_name}-* rm -f /var/install/config.d/${package_name}.sh rm -f /var/install/config.d/${package_name}-update.sh rm -f /var/install/help/${package_name} rm -f /var/install/packages/${package_name} ### ------------------------------------------------------------------------- ### stop remove for update only ### ------------------------------------------------------------------------- if [ "$param" = 'update' ] then exit 0 fi ### ------------------------------------------------------------------------- ### remove package from menu system ### ------------------------------------------------------------------------- /var/install/bin/del-menu setup.services.menu setup.services.${package_name}.menu rm -f /var/install/menu/setup.services.${package_name}.* ### ------------------------------------------------------------------------- ### remove config and check file ### ------------------------------------------------------------------------- rm -f /etc/config.d/${package_name} rm -f /etc/filelist.d/${package_name}-files.txt ### ------------------------------------------------------------------------- ### remove deinstall script ### ------------------------------------------------------------------------- rm -f /var/install/deinstall/${package_name} ### ------------------------------------------------------------------------- echo ""