+update-motd (1.4) intrepid; urgency=low
+
+ * debian/config: validate that 1<=FREQ_IN_MIN<=59, at most 5 times before
+ defaulting to FREQ_IN_MIN=10
+ * debian/templates: valid input is 1 to 59 minutes
+
+ -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 15 Sep 2008 21:37:44 -0500
+
update-motd (1.3) intrepid; urgency=low
* debian/config: only ask freq-in-min question if update-motd is enabled,
db_get $PACKAGE/enable
RUN="${RET:-true}"
if [ "$RUN" = "true" ]; then
- db_input medium $PACKAGE/freq-in-min || true
+ TRIES=5
+ for i in `seq 1 $TRIES`; do
+ db_input medium $PACKAGE/freq-in-min || true
+ db_go
+ db_get $PACKAGE/freq-in-min
+ FREQ_IN_MIN="${RET:-0}"
+ if [ "$FREQ_IN_MIN" -ge 1 ] && [ "$FREQ_IN_MIN" -le 59 ]; then
+ break
+ fi
+ if [ "$i" = "$TRIES" ]; then
+ # After a few tries, default to 10
+ FREQ_IN_MIN=10
+ fi
+ done
fi
db_go
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: update-motd@packages.debian.org\n"
-"POT-Creation-Date: 2008-08-22 11:36+0100\n"
+"POT-Creation-Date: 2008-09-15 16:31-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#. Type: string
#. Description
#: ../templates:2001
-msgid "Frequency should update-motd run (every N minutes):"
+msgid "Frequency should update-motd run (every 1 to 59 minutes):"
msgstr ""
#. Type: string
Template: update-motd/freq-in-min
Type: string
Default: 10
-_Description: Frequency should update-motd run (every N minutes):
+_Description: Frequency should update-motd run (every 1 to 59 minutes):
The MOTD status is updated in a cron job, that can run as frequently as
every minute, or as infrequently as desired. A higher frequency will
negatively affect the overall system load.