profile 1005 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
  2. if [ "$PS1" ]; then
  3. if [ "`id -u`" -eq 0 ]; then
  4. export PS1='\u@\h:\w\$ '
  5. else
  6. export PS1='\u@\h:\w\$ '
  7. fi
  8. fi
  9. export PAGER='/bin/more'
  10. export EDITOR='/bin/vi'
  11. # Source configuration files from /etc/profile.d
  12. for i in /etc/profile.d/*.sh ; do
  13. if [ -r "$i" ]; then
  14. . $i
  15. fi
  16. done
  17. unset i
  18. export XDG_RUNTIME_DIR=/dev/shm
  19. export RUNDIR=/root/run
  20. export APPDIR=$RUNDIR/app
  21. export WEBDIR=$RUNDIR/web
  22. export SNMPDIR=$APPDIR/snmp
  23. source /etc/qtenv.sh
  24. export MIBDIRS=$SNMPDIR/mibs
  25. export LD_LIBRARY_PATH=$APPDIR/lib:$LD_LIBRARY_PATH
  26. export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1:rotate=180:invertx
  27. if [ -x /usr/bin/resize ] && termpath="`tty`"; then
  28. # Make sure we are on a serial console (i.e. the device used
  29. # starts with /dev/tty),
  30. # otherwise we confuse e.g. the eclipse launcher which tries
  31. # do use ssh
  32. case "$termpath" in
  33. /dev/console) resize >/dev/null;;
  34. /dev/tty[A-z]*) resize >/dev/null
  35. esac
  36. fi