出于某种原因,我昨天从标准的“Debian GNU / Linux带有ABSOLUTELY NO WARRANTY …”到我自己定制的消息编辑motd文件。 今天系统重新启动后,我的自定义消息已经消失,现在回到:
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
我怎样才能使自己的消息永久? 顺便说一下,我正在使用Debian 6。
在默认情况下,Debian具有/etc/motd作为/var/run/motd的符号链接。 这是由/etc/init.d/bootlogs启动时更新的。
要使用自己的motd,只需打破/etc/motd符号链接并将其创build为常规文件。
不,在升级之后,你有一个古老的动机。 我认为最好的方法是使用/etc/motd.tail并且可以在其中添加一些额外的信息。