.login

[Last up date: 14/02/12]
[目次] >> [FreeBSD] >> [.login]

ログインした時の動作設定ファイルです。コンソールからログインするとXを立ち上げるようにしています。 pathの切り方がちょっと古いかもしれません。
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/bin /usr/X11R6/bin $HOME/bin)
setenv MANPATH "/usr/share/man:/usr/X11R6/man:/usr/local/man"

# A rightous umask
umask 022

set d = `date +%H`
if ($d <= 12 ) then
 echo -n Good morning...
else if ($d <= 18 ) then
 echo -n Good afternoon...
else
 echo -n Good evening...
endif
unset d
if ("`tty`" != "/dev/ttyv0") then
	exit
endif

echo -n "Starting X (Controll-C to intterupt)"
sleep 3

startx

Counter image
[WACKIE SPACE]