File: login_script

package info (click to toggle)
linuxlogo 5.11-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 856 kB
  • sloc: ansic: 3,165; sh: 370; makefile: 289; perl: 7
file content (38 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# LINUX_LOGO
#
# This sample script by Juhapekka Tolvanen <juhtolv@silmu.st.jyu.fi>
# goes at the end of a .bashrc file.  It detects where you are logging
# in from, and will run Welcome2L [a intel-specific logo program],
# linux_logo, or linux_logo -a depending on term type.

R=$(cat /etc/redhat-release)

#eval resize
# if [ $LINES >= 40 ]; then

#$HOME/bin/linux_logo -ascii -y -u


#$HOME/bin/linux_logo -ascii -y -u

case "$TERM" in

linux)
#$HOME/bin/linux_logo_custom -t "Red Hat Linux $R" -y -u
$HOME/bin/Welcome2L
uptime
echo Red Hat Linux $R
echo ""
;;

xterm-color)
$HOME/bin/linux_logo -t "Red Hat Linux $R" -y -u
;;

*)
$HOME/bin/linux_logo -t "Red Hat Linux $R" -y -u -ascii

esac

# fi