Erro:
warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.
Observação: Na realidade não se trata de um erro e sim de um aviso/warning.
Para resolvê-lo sem problema, basta que altere a localização do parâmetro "-maxdepth" para logo depois da escrita "fund $1".
Veja como é originalmente o script:
cbq_init () {
        ### Get a list of configured classes
        CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -maxdepth 1 -printf "%f\n"| sort`
        [ -z "$CLASSLIST" ] &&
        cbq_failure "no configuration files found in $1!"
        ### Gather all DEVICE fields from $1/cbq-*
        DEVFIELDS=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -maxdepth 1| xargs sed -n 's/#.*//; \
        s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
        { s/.*=//; p; }'| sort -u`               
        [ -z "$DEVFIELDS" ] &&             
        cbq_failure "no DEVICE field found in $1/cbq-*!" 
        ### Check for different DEVICE fields for the same device
        DEVICES=`echo "$DEVFIELDS"| sed 's/,.*//'| sort -u`
        [ `echo "$DEVICES"| wc -l` -ne `echo "$DEVFIELDS"| wc -l` ] &&
        cbq_failure "different DEVICE fields for single device!\n$DEVFIELDS"
} # cbq_init
As linhas a serem alteradas são:
DE:
A)
        CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -maxdepth 1 -printf "%f\n"| sort`
B)
        DEVFIELDS=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -maxdepth 1| xargs sed -n 's/#.*//; \
PARA:
A)
        CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -printf "%f\n"| sort`
B)
        DEVFIELDS=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~'| xargs sed -n 's/#.*//; \
Veja como vai ficar o script após a alteração:
cbq_init () {
        ### Get a list of configured classes
        CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~' -printf "%f\n"| sort`
        [ -z "$CLASSLIST" ] &&
        cbq_failure "no configuration files found in $1!"
        ### Gather all DEVICE fields from $1/cbq-*
        DEVFIELDS=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
        -not -name '*~'| xargs sed -n 's/#.*//; \
        s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
        { s/.*=//; p; }'| sort -u`               
        [ -z "$DEVFIELDS" ] &&             
        cbq_failure "no DEVICE field found in $1/cbq-*!" 
        ### Check for different DEVICE fields for the same device
        DEVICES=`echo "$DEVFIELDS"| sed 's/,.*//'| sort -u`
        [ `echo "$DEVICES"| wc -l` -ne `echo "$DEVFIELDS"| wc -l` ] &&
        cbq_failure "different DEVICE fields for single device!\n$DEVFIELDS"
} # cbq_init
Espero ter ajudado...
	
		
		
		esse problema, resolvi gracas a esse topico...
porem, tenho outro problema.. sera que alguem conseguiria dar uma dica?
uso fedora 11 atualmente...
ate o fedora 10, nao tinha esse problema... mas com essa nova versao comecou a ter...
qdo dou cbq start...
tenho a seguinte mensagem de volta:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
alguem teria uma dica?