home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / emovix / eMovix-0.9.0pre1_Setup.exe / {app} / src / movix / profile < prev    next >
Encoding:
Text File  |  2003-07-02  |  2.1 KB  |  76 lines

  1. # commands common to all logins
  2. PATH="$PATH:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/local/mplayer/bin"
  3. LESS=-MM
  4. TERM=linux
  5. HOME=/root
  6. DVDCSS_METHOD=title
  7. if [ ! -e /lib/libdvdcss.so ] && [ ! -e /lib/libdvdcss.so.2 ] ; then
  8.    DVD="\n                WARNING: this eMoviX CD can play only uncrypted DVDs!\n"
  9. else
  10.    DVD=""
  11. fi
  12.  
  13. # Short help for novice users
  14. alias help="echo -e '
  15. Some useful commands: 
  16.  
  17.     movix       Start playing again from this or another CD-ROM.
  18.     vcd N       Play Video CD track N (probably 2 or 1)
  19.     dvd N       Play DVD track N (probably 1 or 2)
  20.     dvd         Play the longest DVD track$DVD
  21.     acd         Play audio CD
  22.     mcd         Play MP3/Ogg CD (MP3, Ogg and WAV files on the CD-ROM)
  23.  
  24.     lim         Load ISA Modules - use it only if your audio ISA card
  25.                 is not automatically detected
  26.     reboot      Reboot the machine
  27.     poweroff    Shut the machine down
  28.     
  29.     mount /dev/cdroms/cdrom0 /cdrom     Assign the CD-ROM to the system
  30.     umount /cdrom                       Unmount the CD-ROM
  31.     eject                               Eject the CD-ROM
  32.  
  33.     Alt+F2    Volume control
  34.     Alt+F1    Switch back to this console
  35.     Alt+F3    Extra console
  36. '"
  37.  
  38. alias lim="isapnpmodules.sh"
  39.  
  40. PS1='[type "help" for help] eMoviX-> '
  41. PS2='> '
  42.  
  43. # Include the localized help text if it is there
  44. if [ -e /etc/help.txt ]; then
  45.     . /etc/help.txt
  46. fi
  47.  
  48. ignoreeof=10
  49. export PATH DISPLAY LESS TERM PS1 PS2 HOME DVDCSS_METHOD ignoreeof
  50. umask 022
  51.  
  52. #####################################
  53. ### Setting Audio volumes
  54. ###########################
  55. if echo -n "X$AUDIO" | grep '^X[0-9][0-9]*$' > /dev/null ; then
  56.     # The AUDIO variable is set to an integer, so use that as the card number
  57.     card=$AUDIO
  58. else
  59.     # Default sound card: 0
  60.     card=0
  61. fi
  62.  
  63. if [ -e "/proc/asound/card$card" ]; then
  64.   amixer -c $card set Master 90% unmute
  65.   amixer -c $card set PCM    50% unmute
  66.   amixer -c $card set Line   70% unmute
  67. else
  68.   echo "No audio card found :-(";
  69.   echo "Your video will play without any audio";
  70. fi
  71.  
  72. movix
  73.  
  74. # Write translated help message 
  75. help
  76.