From owner-freebsd-audit Thu Oct 4 16: 0:38 2001 Delivered-To: freebsd-audit@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 3F55C37B401 for ; Thu, 4 Oct 2001 16:00:35 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id BAA54342; Fri, 5 Oct 2001 01:00:32 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: cjclark@alum.mit.edu Cc: freebsd-audit@FreeBSD.ORG Subject: Re: dmesg.boot Gets Overwritten without Reboot References: <20011003221310.Q8391@blossom.cjclark.org> <20011004152541.I297@blossom.cjclark.org> From: Dag-Erling Smorgrav Date: 05 Oct 2001 01:00:31 +0200 In-Reply-To: Message-ID: Lines: 15 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dag-Erling Smorgrav writes: > $ find /var/run -type f -name dmesg.boot -newermt "$(sysctl -n kern.boottime | sed 's/.*}//')" > /var/run/dmesg.boot Sorry, I forgot you don't have sed(1) available. Use this: boottime="$(sysctl -n kern.boottime)" foo="$(find /var/run -type f -name dmesg.boot -newermt "${boottime#*\}}")" if [ "${foo}" != "/var/run/dmesg.boot] ; then echo 'Spank me!' fi DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message