Don't force df line to end in $WORKDIR in sysresccd-custom.
authorW. Trevor King <wking@drexel.edu>
Wed, 24 Mar 2010 11:46:31 +0000 (07:46 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 24 Mar 2010 11:46:31 +0000 (07:46 -0400)
"df -m -P $WORKDIR" should only have returned that entry, and the
match breaks if $WORKDIR is a subdirectory of a mount point.

portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-custom

index 2cd848478cbdeea8330464a62f4a7c6e61fafecd..e992ebe1fa2905e7b440f7a0118661ef6c0fd0ad 100755 (executable)
@@ -73,7 +73,7 @@ die()
 # $1 == MB required by the function
 check_freespace()
 {
-       SIZE=`(df -m -P ${WORKDIR}) | grep " ${WORKDIR}$" | tail -n 1 | awk '{print $4}'`
+       SIZE=`(df -m -P ${WORKDIR}) | tail -n 1 | awk '{print $4}'`
        if [ -z "$SIZE" ]
        then
                help_readman "Could not determine amount of room in ${WORKDIR}"