"Charles Steinkuehler" <[EMAIL PROTECTED]> wrote:

> This is a call for those who have done mods to the sh-httpd code to
> merge their changes into CVS, either directly (preferred...only possible
> if you're a registered LEAF developer), or by sending me a patch so I
> can do it (I'm too busy, or this would be the preferred method).
> 
I posted a possible fix on the DCD wish list titled "Alter weblet
disk-checking script to ignore CD-ROM (always 100% full)" issue.  The
modified code is for checkdisk.

Here's the original post.
http://www.mail-archive.com/leaf-user@lists.sourceforge.net/msg06064.html

I am not a registered developer so here is the diff.

diff -u checkdisk checkdisk.new
--- checkdisk   Tue Oct 30 05:38:42 2001
+++ checkdisk.new       Tue Jul  2 22:36:52 2002
@@ -27,6 +27,16 @@
 bkg='BGCOLOR="#33ff33"'

 for line in `df | grep /dev/` ; do
+   # Look at the greped line returned from df.
+   # Error reporting is only concerned about shortage of space
+   # on both floppy drives and ram drives.
+   # All other mounted media is presumed to be some sort of
+   # readonly boot media.  The default case statement, *)
+   # will ignore readonly media especially cdroms.
+   case $line in
+     # Search for /dev/fd* and /dev/ram* lines to calculate
+     # drive capacity ratios.
+   *fd*|*ram*)
        IFS=$OIFS
        set -- $line

@@ -52,6 +62,11 @@
        [ "$free" -le "${WRN_K}" ] && setwarn
        [ "$pcnt" -le "${ERR_PCNT}" ] && seterror
        [ "$free" -le "${ERR_K}" ] && seterror
+       ;;
+   *)
+       continue
+       ;;
+   esac
 done

 case $func in


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to