Well one difference between running the init script from shell and during boot is the environment. Are you using some shell commands or something else for let say GetDirList, because during boot the path variable is not initialized as it is when you are in shell (actually I think it is empty) and if you don't specify absolute paths or manually fill it the required programs could not be located.
<br><br>Also look for something else from the environment that your program depends on. <br><br>Try to clear the environment in the shell and try to run the init script and see what will happen.<br><br>-- <br>Geno Roupsky