Hello guys,
so I recently started a little project with my Raspberry Pi Model B (1st Gen) (a script that checks wifi channels nearby for activity and tells me per E-Mail the best channel to use using a Hotspot I've made from my phone). However, I don't have a spare keyboard/monitor combo to use this on the go, so I thought I'd put the parameters onto the SD using my Laptop. I've made a file called channels that should contain a list of channels to check. However, when I change the contents of the file in /root/home/pi/channels on my laptop and then put the SD into the pi and start it up, it seems like the pi reverses the changes I've made. When I programmed the Pi I set the content of channels to "13". Then I edited it on the Laptop to "4", but when I start the Pi it scans Channel 13 and when I look at the SD again the file is changed back to "13". I have no Idea why this happens, do any of you guys have experienced this kind of behavior before?
Btw., I am using ./script.sh -c "$(<./channels)" to start the script with the channel parameter. I also tried to edit the .bashrc file and wrote "echo 4 >./channels" in there but after putting it in the Pi and then checking again, the change to the .bashrc file was reverted, too.
Thanks in advance