Remove sockets found in /var/run or /var/spool/lock at boot time

(as well as files).
This commit is contained in:
brian 2001-03-28 10:13:26 +00:00
parent f7119fb59a
commit d0ffa9df24

2
etc/rc
View File

@ -314,7 +314,7 @@ purgedir() {
[ ."$file" = .. -o ."$file" = ... ] && continue
[ -d "$file" -a ! -L "$file" ] &&
purgedir "$file"
[ -f "$file" ] && rm -f -- "$file"
[ -f "$file" -o -S "$file" ] && rm -f -- "$file"
done
)
done