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

(as well as files).
This commit is contained in:
Brian Somers 2001-03-28 10:13:26 +00:00
parent 76e2bc010d
commit 128644ca1e

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