Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 May 2001 09:03:03 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Brian Somers <brian@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org, freebsd-arch@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc 
Message-ID:  <200105090803.f49833B84293@hak.lan.Awfulhak.org>
In-Reply-To: Message from Brian Somers <brian@FreeBSD.org>  of "Wed, 09 May 2001 00:24:47 PDT." <200105090724.f497OlW22190@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> brian       2001/05/09 00:24:47 PDT
> 
>   Modified files:        (Branch: RELENG_4)
>     etc                  rc 
>   Log:
>   Remove sockets as well as regular files in /var/run and /var/spool/lock
>   at boot time.  This restores the pre-4.3 behaviour.
>   
>   Revision    Changes    Path
>   1.212.2.25  +2 -2      src/etc/rc

I think maybe this should just remove everything ?  Comments ?

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !

Index: rc
===================================================================
RCS file: /home/ncvs/src/etc/rc,v
retrieving revision 1.261
diff -u -r1.261 rc
--- rc	2001/04/15 13:44:05	1.261
+++ rc	2001/05/09 08:07:55
@@ -312,9 +312,12 @@
 			cd "$dir" && for file in .* *
 			do
 				[ ."$file" = .. -o ."$file" = ... ] && continue
-				[ -d "$file" -a ! -L "$file" ] &&
+				if [ -d "$file" -a ! -L "$file" ]
+				then
 					purgedir "$file"
-				[ -f "$file" -o -S "$file" ] && rm -f -- "$file"
+				else
+					rm -f -- "$file"
+				fi
 			done
 		)
 		done



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105090803.f49833B84293>