Originally Posted by knc1
Check the line endings of any script that you used an editor on (even if only to view).
Script line endings must be "Unix" not "Windows".
I made the changes under Linux, so that shouldn't be the problem.
I also have a backup of the original on the device. I just need access to restore it.