Re: tftpboot cleanup script draft

David Quenzler <quenzler-r/[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <OFE7552089.3CF621A6-ON852574B0.0049833B-852574B0.004A87D1@us.ibm.com>
I like Josh's suggestion of the -delete flag (didn't know about that one!)

If we take off the trailing asterisk, we will leave the .bak or the .1 
stuff, but we still will match abi-$version.

Maybe

for i in  vmlinuz config System.map initrd elf wraplinux-nbi initrd.img 
nbi.img; do
rm -vrf $i-$version
done

- Dave

ltsp-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote on 08/24/2008 08:54:12 
PM:

> David Quenzler wrote:
> > Warren,
> > 
> > Are there any files containing $version that we'd want to keep?  (e.g. 

> > abi-$version or *version.bak)
> 
> I intentionally wrote it the way I did without wildcards to catch other 
> files because of cases like:
> 
> 2.6.29-1
> 2.6.29-1.1
> 
> If *2.6.29-1* is searched for then it will also delete the 2.6.29-1.1 
> even if it is a legitimate kernel that shouldn't be removed.  Thus the 
> explicit patterns without wildcards.
> 
> Warren Togami
> [email protected]
> 
> 
-------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
> Build the coolest Linux based applications with Moblin SDK & win great 
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the 
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _____________________________________________________________________
> Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-developer
> For additional LTSP help,   try #ltsp channel on irc.freenode.net


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.