this could happen if you edited rcS using a text editor that adds a <CR> (carriage return character) after a <LF> (Linefeed)
In that case the script will not be executed, it may not contain <LF><CR> at the end of line, only <LF>
Why not use the the boot jobs feature ? then you do not need to edit rcS