From 128644ca1ecf7d08d4d66f0119e473bc0e7db37c Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 28 Mar 2001 10:13:26 +0000 Subject: [PATCH] Remove sockets found in /var/run or /var/spool/lock at boot time (as well as files). --- etc/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc b/etc/rc index 3b8440f348f6..adbc9870971a 100644 --- a/etc/rc +++ b/etc/rc @@ -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