#
# Copyright (C) by Stefano Falsetto
# e-mail contact ....: mailto:stefko5@inwind.it
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# Config Plugin (phase 3) for diskspace


configure_diskspace () {
  begin_check "df"
  find_prg df
  DF=$FOUND_PRG
  if [ -z "$DF" ]; then
    missing df "http://www.gnu.org/software/fileutils/fileutils.html"
  else
    DESCRIPTION="Check for available hard disk space to decode songs"
    PARAMETERS="--diskspace"
    WHERE=begin
    DEF_SPACEDISK=650
  fi
  end_check
}

cat_variables_diskspace () {
  if [ -z "$DEF_SPACEDISK" ]; then
    return
  fi
cat <<EOF
# Default value for CD capacity
DEF_SPACEDISK=$DEF_SPACEDISK

EOF
}

