#! /bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/kernel-dev # # Copyright (c) 2004 Jens Vehlhaber # # Creation: 2004-10-09 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. #----------------------------------------------------------------------------- cd /tmp # remove dirs for ir in Documentation arch crypto drivers fs include init ipc kernel lib mm net scripts do rm -rf /usr/src/linux-2.4.35/${ir} done # remove files for rest in .config \ .config.old \ .depend \ .hdepend \ .version \ 2.4.35-2.4.35-wt1.patch \ COPYING \ CREDITS \ MAINTAINERS \ README \ REPORTING-BUGS \ Rules.make \ System.map \ vmlinux do rm -f /usr/src/linux-2.4.35/${rest} done # remove link if [ -L /usr/src/linux ] then if [ -n "`ls -l /usr/src/linux | grep 'linux-2.4.35'`" ] then rm -f /usr/src/linux fi fi # remove scripts rm -f /var/install/packages/kernel-dev rm -f /var/install/deinstall/kernel-dev exit 0