fi
if [ "X${update_motd}" != X"NO" ]; then
T=/tmp/_motd
T=`mktemp -q /tmp/_motd.XXXXXX`
rm -rf $T
if [ $? -eq 0 ]; then
uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T
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
cp $T /etc/motd
chmod 644 /etc/motd
else
echo "Could not create temporary file $T for motd update!"
# Run rc.devfs if present to customify devfs