Date: 05 Oct 2001 01:00:31 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: cjclark@alum.mit.edu Cc: freebsd-audit@FreeBSD.ORG Subject: Re: dmesg.boot Gets Overwritten without Reboot Message-ID: <xzpwv2bau40.fsf@flood.ping.uio.no> In-Reply-To: <xzp1ykjc9gc.fsf@flood.ping.uio.no> References: <20011003221310.Q8391@blossom.cjclark.org> <xzpelojfwdk.fsf@flood.ping.uio.no> <20011004152541.I297@blossom.cjclark.org> <xzp1ykjc9gc.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@ofug.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpwv2bau40.fsf>