[Empeg-general] Re: Startup sound on ignition

mtempsch@empegbbs-noreply.merlins.org mtempsch at empegbbs-noreply.merlins.org
Fri, 15 Mar 2002 20:42:00 GMT


OK, I'm attaching the picker package...

and here's what I currently use as /bin/init to start some stuff:
(considering making the VNC server only start at AC power, but haven't really noticed a need yet...)
=BEGIN=======================================
#!/bin/sh                                                                       
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
#start some stuff
/drive1/var/bin/VNC_server < /dev/null 2<&amp;1
/drive1/var/bin/viewer < /dev/null 2<&amp;1

while [ 1 ] ; do
  /drive1/var/bin/pick_list
  echo "Press q now to terminate to a shell prompt."
  echo
  /drive1/var/bin/getkey q &amp;&amp; /bin/bash
  echo Running Player...
  /empeg/bin/player
  /bin/bash
done
=END=========================================



To use it, create a suitably modified text file, save it with unix style line feeds (if you don't have an editor capable of that, I'd recommend getting UltraEdit)
Connect to the player, rename the original /bin/init (for instance to /bin/init.org), upload the text file and make it executable...

/Michael