From owner-freebsd-hackers Thu Nov 30 7:57:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id C967337B401 for ; Thu, 30 Nov 2000 07:57:45 -0800 (PST) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.20 #1) id 141W4w-0006by-00 for freebsd-hackers@freebsd.org; Thu, 30 Nov 2000 17:56:58 +0200 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 141W4v-0003X4-00 for freebsd-hackers@FreeBSD.ORG; Thu, 30 Nov 2000 17:56:57 +0200 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: freebsd-hackers@FreeBSD.ORG Subject: diskless/rc Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Nov 2000 17:56:57 +0200 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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