modify lsb.pl to resolve  bug and resolve runscript.sh infinite loop