#!/bin/bash # # $Id: redocheckconfig 356 2011-09-24 23:25:47Z svnuser $ # # $Log: redocheckconfig,v $ # Revision 1.6 1999/04/13 08:29:48 merlin # Fixed bug (missing \) # # Revision 1.5 1999/04/13 03:01:54 merlin # Don't link to files that have a '.' in their name (.rpmorig, .diff, .me...) # # Revision 1.4 1999/04/05 17:29:45 merlin # Handle script names with '-' in them # # Revision 1.3 1998/07/27 02:31:31 merlin # Handle subdirectories in /etc/rc.d/init.d/ correctly # # Revision 1.2 1998/07/19 03:11:51 merlin # Smart version that now handles all checkconfig enabled scripts # # Revision 1.1 1998/05/24 05:23:40 merlin # First version checked in CVS # # SERVICES=`grep -- chkconfig \`find /etc/rc.d/init.d -type f -maxdepth 1\` | sed -e "s/^.*\///" -e "s/:.*//" | grep -v \\\.` for i in $SERVICES do echo cleaning $i chkconfig --del $i done echo echo "You can check if the rc?.d are near empty or not, and press enter" read a for i in $SERVICES do echo adding $i chkconfig --add $i done