diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index d5d0e9b92..6bc835413 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -384,9 +384,19 @@ uptodate() { [ -x $1 ] || return 1 local dir + local busybox + + [ -h $(mywhich find) ] && busybox=Yes for dir in $g_shorewalldir $(split $CONFIG_PATH); do - if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then + if [ -n "$busybox" ]; then + # + # Busybox 'find' doesn't support -quiet. + # + if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print)" ]; then + return 1; + fi + elif [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then return 1; fi done