/etc/motd is not updated at boot
Good morning,
/etc/motd is not updated at boot under HardenedBSD 13-STABLE.
Running “sh -x /etc/rc.d/motd start” returns:
- [ start '!=' start ]
- [ -n update_motd -a start '!=' rcvar -a start '!=' stop -a start '!=' delete -a start '!=' enable -a start '!=' describe ]
- checkyesno update_motd
- eval '_value=$update_motd'
- _value=YES
- debug 'checkyesno: update_motd is set to YES.'
- return 0
- [ start '=' start -a -z '' -a -n '' ]
- eval '_cmd=
start_cmd' '_precmd=
start_precmd' '_postcmd=$start_postcmd' - _cmd=motd_start _precmd='' _postcmd=''
- [ -n motd_start ]
- [ -n '' ]
- _run_rc_precmd
- check_required_before start
- local _f
- return 0
- [ -n '' ]
- check_required_after start
- local _f _args
- return 0
- return 0
- _run_rc_doit 'motd_start '
- debug 'run_rc_command: doit: motd_start '
- eval 'motd_start '
- motd_start
- check_startmsgs
- [ -n '' ]
- return 0
- echo -n 'Updating motd:' Updating motd:+ [ ! -f /etc/motd.template ]
- mktemp -t motd
- T=/tmp/motd.CgZi7Rlv
- uname -v
- sed -e 's,^([^#]) #(. [1-2][0-9][0-9][0-9])./([^]) $,\1 (\3) #\2,'
- awk '{if (NR == 1) {if ($1 == "FreeBSD" || $1 == "HardenedBSD") {next} else {print "\n"$0}} else {print}}' eval: cannot open /etc/motd: No such file or directory
- install -C -o root -g wheel -m 644 /tmp/motd.CgZi7Rlv /var/run/motd
- rm -f /tmp/motd.CgZi7Rlv
- check_startmsgs
- [ -n '' ]
- return 0
- echo . .
- _return=0
- [ 0 -ne 0 ]
- return 0
- _run_rc_postcmd
- [ -n '' ]
- return 0
- return 0