--- ember.in.orig	Mon Jul 10 22:21:36 2006
+++ ember.in	Fri Jul 14 06:21:41 2006
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 
 
@@ -40,8 +40,9 @@
 # Setup variables
 
 #get the dir where this script resides in
-path=`FindPath`
-test=${path[0]}
+set -- $(FindPath)
+path=$*
+test=$1
 #if [ "$fullpath" = "" ]; then
 if [ "$test" = "." ]; then
 	path=${PWD}
@@ -99,5 +100,6 @@
 # Execute real ember binary
 echo "Starting Ember...."
 #we have to do the LD_PRELOAD thing, because else at least I get an error: libnvidia-tls.so.1: cannot handle TLS data /ehj
-LD_PRELOAD=libGL.so.1 $bindir/ember.bin --binrelocloading --home $homedata
-
+[ ! -f $homedata/plugins.cfg ] && cp $etcdir/plugins.cfg $homedata/
+[ ! -f $homedata/resources.cfg ] && cp $etcdir/resources.cfg $homedata/
+LD_PRELOAD=libGL.so.1 $bindir/ember.bin
