update-motd (1.8) UNRELEASED; urgency=low
- * update-motd: On disable, regenerate a motd that does not have the possibly
- stale update-motd data in it.
+ * update-motd: on disable, regenerate a motd that does not have the possibly
+ stale update-motd data in it; on enable, run update-motd immediately
+ (LP: #276539)
+ * update-motd.1: update the manpage accordingly
- -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 29 Sep 2008 10:34:55 -0500
+ -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 30 Sep 2008 17:30:34 -0500
update-motd (1.7) intrepid; urgency=low
"--enable"|"-e")
rm -f "$DISABLED"
echo "$NAME is now enabled." 1>&2
- exit 0
+ # Do not exit here, as we want to update the MOTD
+ # immediately upon enabling
;;
"--force"|"-f")
FORCE=1
.IX Header "OPTIONS"
.TP
\fB\-\-disable\fP
-Prevent update-motd from running. This is useful for temporarily disabling automatic updates of \fI/etc/motd\fP by the \fI/etc/cron.d/update-motd\fP cronjob. Note that this exits immediately after disabling, and does update the MOTD.
+Prevent update-motd from running. This is useful for temporarily disabling automatic updates of \fI/etc/motd\fP by the \fI/etc/cron.d/update-motd\fP cronjob. Note that this regenerates a base MOTD without the update-motd additions, and then exits.
.TP
\fB\-\-enable\fP
-Allow update-motd to run. This is useful for enabling automatic updates of \fI/etc/motd\fP through the \fI/etc/cron.d/update-motd\fP cronjob. Note that this exits immediately after enabling, and does update the MOTD.
+Allow update-motd to run. This is useful for enabling automatic updates of \fI/etc/motd\fP through the \fI/etc/cron.d/update-motd\fP cronjob. Note that this updates the MOTD immediately.
.TP
\fB\-\-force\fP
Override a disabled update-motd for a single, immediate update of \fI/etc/motd\fP.