ts-7000
[Top] [All Lists]

[ts-7000] Fix for bug in /etc/init.d/bootclean.sh script in new sarge

To:
Subject: [ts-7000] Fix for bug in /etc/init.d/bootclean.sh script in new sarge
From: "jcunningham63" <>
Date: Wed, 26 Dec 2007 19:07:04 -0000
I've been working with the new debian-sarge-udev-11-15-2007 filesystem
which kept producing the following errors when I booted into it:

Loading kernel modules...done.
Checking all file systems...
fsck 1.40-WIP (14-Nov-2006)
Setting kernel variables...done.
find: warning: you have specified the -maxdepth option after a
non-option argument -perm, but options are not positional (.
find: warning: you have specified the -depth option after a non-option
argument -mtime, but options are not positional (-d.
find: warning: you have specified the -depth option after a non-option
argument -mtime, but options are not positional (-d.
Setting up networking....

Turns out, their are three find syntax errors in its
/etc/init.d/bootclean.sh script. Here are the fixes:

#jkc    ( if cd /tmp && [ "`find . -perm -002 -maxdepth 0`" = "." ]
        ( if cd /tmp && [ "`find . -maxdepth 0 -perm -002`" = "." ]
          then
                # First remove all old files.
#jkc            find . -xdev $TEXPR $EXCEPT ! -type d -depth -print0 |
xargs -0r rm -f
                find . -depth -xdev $TEXPR $EXCEPT ! -type d -print0 |
xargs -0r rm -f
                # And then all empty directories.
#jkc            find . -xdev $DEXPR $EXCEPT -type d -depth -empty
-exec rmdir \{\} \;
                find . -depth -xdev $DEXPR $EXCEPT -type d -empty
-exec rmdir \{\} \;


--Jeff



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Fix for bug in /etc/init.d/bootclean.sh script in new sarge, jcunningham63 <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU