]> git.etc.gen.nz Git - update-motd.git/commitdiff
on disable, clear the motd of stale update-motd data
authorDustin Kirkland <kirkland@canonical.com>
Mon, 29 Sep 2008 15:43:02 +0000 (10:43 -0500)
committerDustin Kirkland <kirkland@canonical.com>
Mon, 29 Sep 2008 15:43:02 +0000 (10:43 -0500)
debian/changelog
update-motd

index 2781ea2bd2fff4a8ba4813615635736f56b98de5..d522a67c691b876ef078d5226c38329f1633154c 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
+ -- Dustin Kirkland <kirkland@ubuntu.com>  Mon, 29 Sep 2008 10:34:55 -0500
+
 update-motd (1.7) intrepid; urgency=low
 
   * Packaging suggestions (LP: #271848)
index 462e6799958adb8324918434e86c4a781ef1ad73..58df5a45a61edf196871cce0ae68ec2f42d659f0 100755 (executable)
@@ -64,6 +64,10 @@ for arg in $@; do
                "--disable"|"-d")
                        touch "$DISABLED"
                        echo "$NAME is now disabled." 1>&2
+                       # Regenerate motd created at boot by
+                       # /etc/init.d/bootmisc.sh
+                       uname -snrvm > $REAL
+                       [ -f $SKEL ] && cat $SKEL >> $REAL
                        exit 0
                ;;
                "--enable"|"-e")