home *** CD-ROM | disk | FTP | other *** search
- # commands common to all logins
- PATH="$PATH:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/local/mplayer/bin"
- LESS=-MM
- TERM=linux
- HOME=/root
- DVDCSS_METHOD=title
- if [ ! -e /lib/libdvdcss.so ] && [ ! -e /lib/libdvdcss.so.2 ] ; then
- DVD="\n WARNING: this eMoviX CD can play only uncrypted DVDs!\n"
- else
- DVD=""
- fi
-
- # Short help for novice users
- alias help="echo -e '
- Some useful commands:
-
- movix Start playing again from this or another CD-ROM.
- vcd N Play Video CD track N (probably 2 or 1)
- dvd N Play DVD track N (probably 1 or 2)
- dvd Play the longest DVD track$DVD
- acd Play audio CD
- mcd Play MP3/Ogg CD (MP3, Ogg and WAV files on the CD-ROM)
-
- lim Load ISA Modules - use it only if your audio ISA card
- is not automatically detected
- reboot Reboot the machine
- poweroff Shut the machine down
-
- mount /dev/cdroms/cdrom0 /cdrom Assign the CD-ROM to the system
- umount /cdrom Unmount the CD-ROM
- eject Eject the CD-ROM
-
- Alt+F2 Volume control
- Alt+F1 Switch back to this console
- Alt+F3 Extra console
- '"
-
- alias lim="isapnpmodules.sh"
-
- PS1='[type "help" for help] eMoviX-> '
- PS2='> '
-
- # Include the localized help text if it is there
- if [ -e /etc/help.txt ]; then
- . /etc/help.txt
- fi
-
- ignoreeof=10
- export PATH DISPLAY LESS TERM PS1 PS2 HOME DVDCSS_METHOD ignoreeof
- umask 022
-
- #####################################
- ### Setting Audio volumes
- ###########################
- if echo -n "X$AUDIO" | grep '^X[0-9][0-9]*$' > /dev/null ; then
- # The AUDIO variable is set to an integer, so use that as the card number
- card=$AUDIO
- else
- # Default sound card: 0
- card=0
- fi
-
- if [ -e "/proc/asound/card$card" ]; then
- amixer -c $card set Master 90% unmute
- amixer -c $card set PCM 50% unmute
- amixer -c $card set Line 70% unmute
- else
- echo "No audio card found :-(";
- echo "Your video will play without any audio";
- fi
-
- movix
-
- # Write translated help message
- help
-