#!/bin/sh
# Modify these if required.
VCD_MOUNT_DIR="/boot/home/vcd"
CDROM_RAW_DEV="/dev/disk/ide/atapi/1/slave/0/raw"
VLC_BIN="/boot/home/vlc-0.4.2/vlc"

# Just to be sure unmount the disk :)
unmount $VCD_MOUNT_DIR

# Mount the vcd
mount -t vcdfs $CDROM_RAW_DEV $VCD_MOUNT_DIR

# Get all the filenames and put them on vlc's commandline
VIDEO_FILES=`ls $VCD_MOUNT_DIR/MPEGAV/*.DAT`

$VLC_BIN $VIDEO_FILES

# Unmount the vcd
unmount $VCD_MOUNT_DIR


