I have an Avermedia media server box for which I've managed to gain root access via telnet (BusyBox).
What I'm trying to do is change the name of the Samba share, which cannot be done in the box's UI on my TV. It defaults to "eSATA Disk1" as defined in /tmp/samba/lib/smb.conf.
While it's defined in that file, it's rewritten with every boot, so it's futile.
I've tried to find from where it's writing that information by searching for other instances of smb.conf, but other than a generic, dummy file, none exists.
So I decided to take an idea from here and here and simply copy an edited smb.conf stored on an attached drive to /tmp/samba/lib upon boot, overwriting the one generated on boot.
Except, you guessed it, additions to /etc/init.d also don't survive boot, making it effectively read-only.
Is there any other way to execute a copy automatically on boot? Or otherwise solve my original problem another way?
Thanks
What I'm trying to do is change the name of the Samba share, which cannot be done in the box's UI on my TV. It defaults to "eSATA Disk1" as defined in /tmp/samba/lib/smb.conf.
While it's defined in that file, it's rewritten with every boot, so it's futile.
I've tried to find from where it's writing that information by searching for other instances of smb.conf, but other than a generic, dummy file, none exists.
So I decided to take an idea from here and here and simply copy an edited smb.conf stored on an attached drive to /tmp/samba/lib upon boot, overwriting the one generated on boot.
Except, you guessed it, additions to /etc/init.d also don't survive boot, making it effectively read-only.
Is there any other way to execute a copy automatically on boot? Or otherwise solve my original problem another way?
Thanks