empeg:/empeg# ls -l
total 3
drwxr-xr-x 2 0 0 1024 Feb 8 18:47 bin
lrwxrwxrwx 1 0 220 14 Feb 8 18:47 fids0 -> ../drive0/fids
lrwxrwxrwx 1 0 220 14 Feb 8 18:47 fids1 -> ../drive1/fids
-rwxr-xr-x 1 0 0 728 Mar 23 21:47 init
drwxr-xr-x 6 0 0 1024 Feb 8 18:47 lib
lrwxrwxrwx 1 0 220 13 Feb 8 18:47 var -> ../drive0/var
empeg:/empeg# cat ./init
#!/bin/sh
echo starting
PATH=.:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/empeg/bin
PS1=empeg:\\w\\$
/bin/mount -n -o nocheck,rw /proc
/bin/mount -n -o nocheck,ro /dev/hda4 /drive0
/bin/mount -n -o nocheck,ro /dev/hdc4 /drive1
echo mount
#choose a random number 0 through 11
RANGE=2
number=$RANDOM
let "number %= $RANGE"

#play a random startup sound
echo Playing random startup sound
cd /drive0/var/bootsound
if [ $number -eq 0 ]
then
./pcmplay < f1
elif [ $number -eq 1 ]
then
./pcmplay < f2
fi

while [ 1 ] ; do
echo "Press q now to terminate to a shell prompt."
echo
/drive0/var/getkey q && /bin/bash
echo Running Player...
/empeg/bin/player
done
empeg:/empeg# ./init
: No such file or directory
empeg:/empeg# sh ./init
starting
: command not found
: command not found
mount: you must specify the filesystem type
Usage: mount [-hV]
mount -a [-nfFrsvw] [-t vfstypes]
mount [-nfrsvw] [-o options] special | node
mount [-nfrsvw] [-t vfstype] [-o options] special node
A special device can be indicated by -L label or -U uuid .
Usage: mount [-hV]
mount -a [-nfFrsvw] [-t vfstypes]
mount [-nfrsvw] [-o options] special | node
mount [-nfrsvw] [-t vfstype] [-o options] special node
A special device can be indicated by -L label or -U uuid .
mount
: command not found
: command not found
./init: let: number %= : syntax error: operand expected (error token is " ")
: command not found
Playing random startup sound
'/init: line 23: syntax error near unexpected token `
'/init: line 23: `fi
empeg:/empeg# anybody see the problem? all files in the init are there and working