File: login_script

package info (click to toggle)
welcome2l 3.05-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 424 kB
  • sloc: ansic: 1,433; makefile: 71; sh: 42
file content (31 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
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
#
# 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.

# Slighty modified for Debian's welcome2l package
# by Robert Luberda <robert@debian.org> on 7 May 2003.

R=$(cat /etc/debian_version)

case "$TERM" in

linux)
	#linux_logo_custom -t "Debian GNU/Linux $R" -y -u
	Welcome2L -msg "Debian GNU/Linux"
	uptime
	echo Debian GNU/Linux $R
	echo ""
;;

xterm-color)
	#linux_logo -t "Debian GNU/Linux $R" -y -u
;;

*)
	#linux_logo -t "Debian GNU/Linux $R" -y -u -ascii

esac