# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/var/bin"

TERM=xterm

if [ ! -e /etc/localtime ]; then
	TZ="UTC"		# Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
				# for an explanation of how to set this to your local timezone.
	export TZ
fi

if [ "$BASH" ]; then
  PS1='\u@\H:\w\$ '
else
  if [ "`id -u`" -eq 0 ]; then
    #PS1='\u@\h:\w\# '
    PS1='\h:\w\# '
  else
    PS1='\$ '
  fi
fi

umask 022

# aliase
#BEGIN
alias ..='cd ..'
alias cmdl='cat /proc/cmdline'
alias dir='ls -lA'
alias ll='ls -l'
alias l='ls -al'
alias mc='mc -u'
alias sc='setconsole'
alias sr='setconsole -r || setconsole -r /dev/tty0'
#END

# export
#BEGIN
export PATH PS1 TERM
#END

EXTRACT_UNSAFE_SYMLINKS=1
export EXTRACT_UNSAFE_SYMLINKS

DEBUG=0

# HAL_DEBUG
# component: audio	0x01
# component: video	0x02
# component: demux	0x04
# component: play	0x08
# component: power	0x10
# component: init	0x20
# component: ca		0x40
# component: record	0x80
# all components:	0xff

#HAL_DEBUG=0xFF
#export HAL_DEBUG
