From owner-freebsd-arch Wed May 9 1: 3:19 2001 Delivered-To: freebsd-arch@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 8C72937B422; Wed, 9 May 2001 01:03:09 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4989YW15445; Wed, 9 May 2001 09:09:35 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f49833B84293; Wed, 9 May 2001 09:03:04 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105090803.f49833B84293@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Brian Somers Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org, freebsd-arch@FreeBSD.org Subject: Re: cvs commit: src/etc rc In-Reply-To: Message from Brian Somers of "Wed, 09 May 2001 00:24:47 PDT." <200105090724.f497OlW22190@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 May 2001 09:03:03 +0100 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 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 freebsd-arch" in the body of the message