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

# Setup the PATH variable.
PATH="/usr/local/bin:/usr/bin:/bin"
if [ "`id -u`" -eq 0 ] ; then
  PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
fi

# Setup the command line prompt.
if [ "$BASH" ] ; then
  PS1='\u@\H:\w\$ '
else
  if [ "`id -u`" -eq 0 ] ; then
    PS1='# '
  else
    PS1='$ '
  fi
fi

# Setup the environment variables.
export PATH PS1 HOSTNAME
export LD_LIBRARY_PATH=/usr/local/lib

# Set the process file creation mask to MODE.
# 022=> u=rwx, g=r_x, o=r_x.
umask 022

# Aliases
alias l="ls -al"
alias lm="ls -al | more"
alias p="ps x -Af"
alias cmd="unixclient /tmp/socket command.sh $*"

# dta alias
alias l="ls -al"
alias lm="ls -al | more"
alias p="ps x -Af"
alias st="cat /proc/asimux/status.xml"
alias sy="cat /proc/asimux/system.xml"
alias ax="cat /var/local/lib/asimux/asimux.xml"
alias px="cat /var/local/lib/asimux/pidconfig.xml"
alias a1="cat /proc/asimux/availableprograms1.xml"
alias a2="cat /proc/asimux/availableprograms2.xml"
alias a3="cat /proc/asimux/availableprograms3.xml"
alias a4="cat /proc/asimux/availableprograms4.xml"
alias a5="cat /proc/asimux/availableprograms5.xml"
alias a6="cat /proc/asimux/availableprograms6.xml"
alias a7="cat /proc/asimux/availableprograms7.xml"
alias a8="cat /proc/asimux/availableprograms8.xml"
alias a9="cat /proc/asimux/availableprograms9.xml"
alias a10="cat /proc/asimux/availableprograms10.xml"
alias wx="cat /var/local/lib/asimux/webref.xml"
alias asibuf="cat /proc/dta_iptv/asibuf"
alias dma="cat /proc/dta_iptv/dma"
alias egress="cat /proc/dta_iptv/egress"
alias ethbuf="cat /proc/dta_iptv/ethbuf"
alias evt="cat /proc/dta_iptv/evt"
alias ingress="cat /proc/dta_iptv/ingress"
alias pcr="cat /proc/dta_iptv/pcr"
alias pidprofile="cat /proc/dta_iptv/pidprofile"
alias pidprofile-on="echo 1 > /proc/dta_iptv/pidprofile"
alias pidprofile-off="echo 0 > /proc/dta_iptv/pidprofile"
alias pids="cat /proc/dta_iptv/pids"
alias pids-on="echo 1 > /proc/dta_iptv/pids"
alias pids-off="echo 0 > /proc/dta_iptv/pids"
alias psibuf="cat /proc/dta_iptv/psibuf"
alias dtaroute="cat /proc/dta_iptv/route"
alias service="cat /proc/dta_iptv/service"
alias skb="cat /proc/dta_iptv/skb"
alias svcbps="cat /proc/dta_iptv/svcbps"
alias svcerr="cat /proc/dta_iptv/svcerr"
alias svcevt="cat /proc/dta_iptv/svcevt"
alias timer="cat /proc/dta_iptv/timer"
alias debug="telnet localhost 44537"

source /etc/env.global

