source: lliurex-ssh-login/trunk/fuentes/lliurex-ssh-login.install/etc/update-motd.d/00-header.lliurex @ 2573

Last change on this file since 2573 was 2573, checked in by daduve, 3 years ago

New instruction for lliurex-version

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#!/bin/sh
2#
3#    00-header - create the header of the MOTD
4#    Copyright (C) 2009-2010 Canonical Ltd.
5#
6#    Authors: Dustin Kirkland <kirkland@canonical.com>
7#
8#    This program is free software; you can redistribute it and/or modify
9#    it under the terms of the GNU General Public License as published by
10#    the Free Software Foundation; either version 2 of the License, or
11#    (at your option) any later version.
12#
13#    This program is distributed in the hope that it will be useful,
14#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16#    GNU General Public License for more details.
17#
18#    You should have received a copy of the GNU General Public License along
19#    with this program; if not, write to the Free Software Foundation, Inc.,
20#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22#[ -r /etc/lsb-release ] && . /etc/lsb-release
23
24#if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
25        # Fall back to using the very slow lsb_release utility
26#       DISTRIB_DESCRIPTION=$(lsb_release -s -d)
27#fi
28
29echo " " 
30echo  "\033[0m\033[34m __         __         __     __  __     ______     ______    \033[0m\033[1;37m __  __  "
31echo "\033[0m\033[34m/\ \       /\ \       /\ \   /\ \/\ \   /\  == \   /\  ___\   \033[0m\033[1;37m/\_\_\_\   "
32echo "\033[0m\033[34m\ \ \____  \ \ \____  \ \ \  \ \ \_\ \  \ \  __<   \ \  __\   \033[0m\033[1;37m\/_/\_\/_  "
33echo "\033[0m\033[34m \ \_____\  \ \_____\  \ \_\  \ \_____\  \ \_\ \_\  \ \_____\   \033[0m\033[1;37m/\_\/\_\ " 
34echo "\033[0m\033[34m  \/_____/   \/_____/   \/_/   \/_____/   \/_/ /_/   \/_____/   \033[0m\033[1;37m\/_/\/_/ "
35echo "\033[0m\033[37m"
36
37DISTRIB_DESCRIPTION=$(lliurex-version -n)
38printf "Welcome to lliurex %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"
Note: See TracBrowser for help on using the repository browser.