Subject: Re: osrelease.sh / param.h
To: Nicolas Saurbier <Nicolas.Saurbier@biodata.de>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-help
Date: 08/06/2002 12:13:05
>thanx Andrew,
>It seems to work. But I have another problem right now.
>The changed copyrighttext is now displayed, when I reboot the
>maschine, but only at the top of the boot messages. When I login to
>the maschine, it=B4s still the old text:
>
>SauPN-GATE/i386 (SauPN-Gate) (tty00)
>
>login: root
>Password:
>Last login: Tue Aug 6 16:36:52 2002 on tty00
>Copyright (c) 1996, 1997, 1998, 1999, 2000
> The NetBSD Foundation, Inc. All rights reserved.
>Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
> The Regents of the University of California. All rights reserved.
login prints that when you log in. look for copyrightstr in
src/usr.bin/login/login.c.
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0 (SauPN-KERNEL) #0: Tue Aug 6 13:57:39 CEST 2002
>SauPN-GATE 1.5.2 (SauPN-KERNEL) #9: Tue Aug 6 11:25:11 CEST 2002
>SauPN-GATE 1.5.2 (SauPN-KERNEL) #8: Tue Aug 6 10:48:39 CEST 2002
>
>Welcome to NetBSD!
>
>SauPN-Gate>
>
>Do I need to recompile the bootloader???
no, i don't think so.
>btw, do you know what happend here:
>
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0
>SauPN-GATE 2.0.0 (SauPN-KERNEL) #0: Tue Aug 6 13:57:39 CEST 2002
>SauPN-GATE 1.5.2 (SauPN-KERNEL) #9: Tue Aug 6 11:25:11 CEST 2002
>SauPN-GATE 1.5.2 (SauPN-KERNEL) #8: Tue Aug 6 10:48:39 CEST 2002
>
>why is that info displayed six times???
/etc/rc.d/motd looks for a string on the first line of /etc/motd that
begins with the text "NetBSD". it removes it and replaces it with the
netbsd banner of the current system. since your /etc/motd doesn't
contain that string, it doesn't get removed, but the replacement (the
current system banner) still gets added.
choose one of:
(1) fix /etc/rc.d/motd to look for, remove, and replace your banner.
(2) disable automatic updating of the motd by putting
update_motd=3DNO
in your rc.conf file.
--=20
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."