Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/kmesg.boot

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# gather /dev/kmesg contents since boot into /sys/log/kmesg

if(! test -d /sys/log/kmesg)
	mkdir /sys/log/kmesg

cd /sys/log/kmesg
tr -d '\0' </dev/kmesg >$sysname.temp
{
	echo; echo; date
	if (grep -s '^Plan 9($| )' $sysname.temp) {
		echo '?^Plan 9($| )?,$p' | ed - $sysname.temp
	}
	if not
		tail -150 $sysname.temp
	echo
	ls -l /srv/boot
	cat /dev/swap
} >>$sysname
rm -f $sysname.temp

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.