Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2000 17:56:57 +0200
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   diskless/rc
Message-ID:  <E141W4v-0003X4-00@sexta.cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help
sorry if this is not the correct list.

this code in rc:
...

case ${update_motd} in
[Nn][Oo] | '')
	;;
*)
	if T=`mktemp /tmp/_motd.XXXXXX`; then
		uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) 
$,\1 (\3) #\2,' > ${T}
		awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print "\n"$0}} else 
{print}}' < /etc/motd >> ${T}
		cmp -s ${T} /etc/motd || {
			cp ${T} /etc/motd
			chmod 644 /etc/motd
		}
		rm -f ${T}
	fi
	;;
esac

used to
	1) the cmp -s -> BUS ERROR
	2) cp ${T} /etc/motd	-> cp: /etc/motd: Bad address

now only 2 is happening - go figure :-)
it also used to, after it went multiuser, to panic when i did the 
	cmp -s ${T} /etc/motd 

any insights?

	danny





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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E141W4v-0003X4-00>