--- trunk/busybox-initscripts/rc/cleanfs 2010/12/15 17:44:36 1168 +++ trunk/busybox-initscripts/rc/cleanfs 2011/01/28 19:28:51 1205 @@ -15,12 +15,17 @@ for dir in /tmp /var/run /var/lock do - rc_print "Removing tmp files in ${dir}/* ..." + rc_print "Removing tmp files in ${dir}/ ..." for file in $(find ${dir} -type f) do [[ $(basename ${file}) = .keep ]] && continue rm -f ${file} done + for subdir in $(find ${dir} -mindepth 1 -type d) + do + [[ -f ${subdir}/.keep ]] && continue + rm -r ${subdir} + done evaluate_retval done