4 069
contributi
(→Header) |
|||
Riga 110: | Riga 110: | ||
printf "Local Users:\t%s\tProcesses:\t%s\n" $users $processes | printf "Local Users:\t%s\tProcesses:\t%s\n" $users $processes | ||
echo | echo | ||
</pre> | |||
====Footer==== | |||
<pre> | |||
#!/bin/sh | |||
# | |||
# 90-footer - write the admin's footer to the MOTD | |||
# Copyright (c) 2013 Nick Charlton | |||
# Copyright (c) 2009-2010 Canonical Ltd. | |||
# | |||
# Authors: Nick Charlton <hello@nickcharlton.net> | |||
# Dustin Kirkland <kirkland@canonical.com> | |||
# | |||
# This program is free software; you can redistribute it and/or modify | |||
# it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 2 of the License, or | |||
# (at your option) any later version. | |||
# | |||
# This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU General Public License along | |||
# with this program; if not, write to the Free Software Foundation, Inc., | |||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |||
[ -f /etc/motd.tail ] && cat /etc/motd.tail || true | |||
</pre> | </pre> |