I think he wants to save it before every reboot rather than manually.

That would need a crafted script to save it (probably from local.stop), and
then reload it on boot up & make sure dnsmasq picked it up. You could put
the script in /root as everything there is saved to configdb.lrp. However if
the router just died on a power failure then you would end up with an old
leases file when it rebooted. Would that be a problem?

John

On 24/01/17 14:48, Erich Titl wrote:
> Hi
> 
> Am 23.01.2017 um 22:46 schrieb Mark Berndt:
>> On Thu, 19 Jan 2017 04:52:57 PM Erich Titl wrote:
>>> Am 19.01.2017 um 02:24 schrieb Mark Berndt:
>>>> When I reboot my leaf system, /var/lib/misc/dnsmasq.leases is lost.
>>>>
>>>> I added it to my local config so it is saved, but of course this only
>>>> happens when save the config.
>>>>
>>>> What is the best way to preserve this information between reboots?
>>>
>>> The easiest way is to add it to /vart/lib/lrpkg/local.local
>>>
>>> cheers
>>
>>> ET
>>
>> Thanks John & ET.
>> How do I save the config from the command line, I want to put it in the stop
>> script.  Is it possible to just save the local data, not the whole config?
> 
> What is local data if not the config.
> 
> To save from the command line have a look at the apkg parameters.
> 
> cheers
> 
> ET
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ------------------------------------------------------------------------
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to