fcopy motd instead of relying on grml-etc plus weirdness
authorChristian Hofstaedtler <ch@grml.org>
Tue, 23 Nov 2010 11:51:59 +0000 (12:51 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 24 Nov 2010 10:58:48 +0000 (11:58 +0100)
etc/grml/fai/config/files/etc/motd/GRMLBASE [new file with mode: 0644]
etc/grml/fai/config/scripts/GRMLBASE/31-motd

diff --git a/etc/grml/fai/config/files/etc/motd/GRMLBASE b/etc/grml/fai/config/files/etc/motd/GRMLBASE
new file mode 100644 (file)
index 0000000..1fc6f73
--- /dev/null
@@ -0,0 +1,2 @@
+grml - Linux for geeks
+
index 3093e64..a83dfe9 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/31-motd
-# Purpose:       make sure the motd setup is correct
+# Purpose:       replace motd
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
@@ -9,9 +9,7 @@
 set -u
 set -e
 
-if [ -f $target/etc/motd.dpkg-new ] ; then
-   $ROOTCMD mv /etc/motd.dpkg-new /var/run/motd
-fi
+fcopy /etc/motd
 
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3