Edit: Explanation -- get the modification date and time and the contents from the running system, ROM, and the overlay file system so that you can look at it before and after restarts or other changes.
for where in / /rom/ /overlay/upper/
do
ls -l ${where}etc/config/mjpg-streamer
cat ${where}etc/config/mjpg-streamer
echo =====
done
I know you had a terrible time with mjpg-streamer, but you really should do what it takes to get onto a maintained version of OpenWrt.
The old mjpg-streamer is now working fine on my old openwrt devices. The only problem is that something keeps resetting etc/config/mjpg-streamer to something other than I last left it at.
After rebooting, I re-edited the file to be 1 then ran your code.
Interesting, I ran your code again this morning and now it shows 0 in the last entry. The device has not rebooted since I was ssh'd in and still am this morning.
That's interesting. There are no cron jobs, there is no one else using the device, no script doing anything that could do this. I've rebuilt the device several times thinking I've done something wrong but each time, the same results.
If it isn't immediately obvious, I'd dig through the scripts in /lib/ and /etc/ with something like fgrep -rI enabled and fgrep -rI mjpg-streamer (-r recursive, -I no "binary" files).
Edit: Now that you know it isn't "changing on boot" (which is a "well known" problem with, for example low-flash devices), it might help to make the thread title more descriptive of your specific problem..
I was wrong. I had put something in the rc.local to make the option 0 on boot while testing and totally forgot that. Since you guys mentioned scripts, it got me thinking about all of the testing I had been through about a month or two ago and just this morning remembered that.
Thank you very much for your help on this as it gave me the lead I needed.