Made the install/update/uninstall scripts looking equal.

The deletion of the files in done in the shellscripts to be more flexible.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1022 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-10-28 16:59:00 +00:00
parent 143b812eb3
commit c6cada8c3f
43 changed files with 985 additions and 67 deletions

View File

@@ -1,14 +1,31 @@
#!/bin/bash
############################################################################
# #
# This file is part of the IPFire Firewall. #
# #
# IPFire 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. #
# #
# IPFire is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with IPFire; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
# Copyright (C) 2007 IPFire-Team <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
stop_service ${NAME}
make_backup ${NAME}
rm /etc/rc.d/rc3.d/S65mpd
rm /etc/rc.d/rc0.d/K35mpd
rm /etc/rc.d/rc6.d/K35mpd
rm /etc/init.d/mpd
rm /var/ipfire/mpfire/mpd.conf
rm /etc/mpd.conf
rm /var/log/mpd.error.log
rm /var/log/mpd.log
remove_files
rm -f /etc/rc.d/rc*.d/*mpd /var/log/mpd.error.log /var/log/mpd.log /etc/mpd.conf