Hi there,

--
--- rc.orig     2006-04-19 15:43:13.869242320 -0300
+++ rc  2006-04-19 15:45:43.632474848 -0300
@@ -491,6 +491,7 @@
 if [ ! -f /etc/motd ]; then
        install -c -o root -g wheel -m 664 /dev/null /etc/motd
 fi
+if [ X"${update_motd}" != X"NO" ]; then
 T=`mktemp /tmp/_motd.XXXXXXXXXX`
 if [ $? -eq 0 ]; then
        sysctl -n kern.version | sed 1q > $T
@@ -499,6 +500,7 @@
        cmp -s $T /etc/motd || cp $T /etc/motd
        rm -f $T
 fi
+fi

 if [ -f /var/account/acct ]; then
        echo 'turning on accounting';   accton /var/account/acct
--

Some companies ask sysadmins to put a specific message of the day for
many purposes, this patch might become handy in such situations.

It is useful, at least for me.

Regards,

--
Eduardo Alvarenga

Reply via email to