3 # $NetBSD: motd,v 1.8 2002/03/22 04:33:59 thorpej Exp $
7 # REQUIRE: mountcritremote
10 $_rc_subr_loaded .
/etc
/rc.subr
14 start_cmd
="motd_start"
19 # Update kernel info in /etc/motd
20 # Must be done *before* interactive logins are possible
21 # to prevent possible race conditions.
24 if [ ! -f /etc
/motd
]; then
25 install -c -o root
-g wheel
-m 664 /dev
/null
/etc
/motd
29 sysctl
-n kern.version |
while read i
; do echo $i; break; done > $T
30 sed '1{/^NetBSD.*/{d;};};' < /etc
/motd
>> $T
31 cmp -s $T /etc
/motd ||
cp $T /etc
/motd