I created a script in /etc/init.d called hello that does some bash commands. Sometimes when I restart the linux device (remove then reinstate power), the contents of my script get totally erased although the actual file is still there. There is another script in there called nginx that came with the system and doesn't have this problem.
I am running a Emlid RTK gps that has a linux computer built in.
sync
has been the standard for decades now. Have you got it? – Rui F Ribeiro Jan 16 '18 at 22:13sync
manually after creating the script in init.d if you have the command. I do know neither the implementation nor the device to be of further help. – Rui F Ribeiro Jan 16 '18 at 22:21