NAS server: Sitecom MD253, \w busybox 1.10.2, \w twonky 4.4.19
I am trying to change the file /usr/local/mediaserver/twonkyvision-mediaserver.ini
and set contentbase=/home/PUBLIC to contentbase=/home.
Everytime I change the file I see it has been changed, but only when I restart the server the changes in the config file have been purged/gone. Why is this?
Two ways to update the file:
Code: Select all
1. sed "/contentbase=/s/.*/contentbase=\/home/" -i twonkyvision-mediaserver.ini 2. echo contentbase=/home >> twonkyvision-mediaserver.ini
Does anyone know how to update a INI file in busybox so the changes are not overwritten. Either this has something to do with busybox file protection or some server script is overwriting my config file
Any help appreciated