7 # REQUIRE: mountcritlocal var
19 cd "$dir" && for file in .* *
21 [ ."$file" = .. -o ."$file" = ... ] && continue
22 if [ -d "$file" -a ! -L "$file" ]
34 # These files must be removed only the first time this script is run
37 [ "$1" != "reload" ] && rm -f /var/run/clean_var /var/spool/lock/clean_var
39 if [ -d /var/run -a ! -f /var/run/clean_var ]; then
41 # And an initial utmp file
42 (cd /var/run && cp /dev/null utmp && chmod 644 utmp;)
45 if [ -d /var/spool/lock -a ! -f /var/spool/lock/clean_var ]; then
46 purgedir /var/spool/lock
47 >/var/spool/lock/clean_var
49 rm -rf /var/spool/uucp/.Temp/*