config clamav 'clamav'
option clamd_config_file '/etc/clamav/clamd.conf'
- option LogFile '/tmp/clamd.log'
- option LogFileMaxSize '1M'
option LogTime 'no'
option LogVerbose 'no'
option ExtendedDetectionInfo 'no'
validate_clamav_section() {
uci_load_validate clamav clamav "$1" "$2" \
'clamd_config_file:string' \
- 'LogFile:string' \
- 'LogFileMaxSize:string' \
'LogVerbose:string' \
'ExtendedDetectionInfo:string' \
'LogTime:string' \
ln -sf "$clamd_config_file" "$CLAMD_CONFIGFILE"
{
- echo "LogFile " "$LogFile"
- echo "LogFileMaxSize " "$LogFileMaxSize"
echo "LogVerbose " "$LogVerbose"
echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo"
echo "LogTime " "$LogTime"