Site Tools


retain_dhcp_lease_info_after_a_reboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
retain_dhcp_lease_info_after_a_reboot [2023/08/05 19:19] – [Method 1: Store the lease database on permanent storage] -condense, fix broken links hogwildretain_dhcp_lease_info_after_a_reboot [2023/08/09 15:39] – [Method 2: Copying the lease database to permanent storage at halt time] -clarify Method 2 uses both sets of lines hogwild
Line 12: Line 12:
  \\  \\
  
-  - Under Advanced, go to to [[advanced-dhcpdns|DHCP/DNS/TFTP]] menu. In the //Dnsmasq Custom configuration// field, enter: \\ \\ <code ->+  - Under Advanced, go to the [[advanced-dhcpdns|DHCP/DNS/TFTP]] menu. In the //Dnsmasq Custom configuration// field, enter: \\ \\ <code ->
 dhcp-leasefile=/mnt/usb/dnsmasq/dnsmasq.leases dhcp-leasefile=/mnt/usb/dnsmasq/dnsmasq.leases
 </code> \\  </code> \\ 
Line 24: Line 24:
 \\ The second approach is to keep the lease database in its default location and copy it to permanent storage at "halt" time. It is later restored when the init process runs during boot. \\ The second approach is to keep the lease database in its default location and copy it to permanent storage at "halt" time. It is later restored when the init process runs during boot.
  
- \\ \\ For example, in the [[admin-scripts|Scripts]] menu, in the Init field, enter:\\+ \\ \\ For example, in the Init field in the [[admin-scripts|Scripts]] menu, enter:\\
  
 <code -> <code ->
Line 41: Line 41:
  \\  \\
  
-In the same menu, in the Halt field, enter:\\+in the //Halt// field In the [[admin-scripts|Scripts]] menu, enter:\\
  
 <code -> <code ->
Line 51: Line 51:
  \\  \\
  
-The second method can be used with any storage, including JFFS.  included, where for USB (onlyan alternative is to performed the save/copy within the //Run after mounting///Run before unmounting on the [[nas-usb|USB page]] instead than the generic script section.+Method 2 can be used with any type of storage, including JFFS. When using method 2 only with USB, an alternative is to enter the former set of configuration lines into the //Run after mounting// field and the latter set of lines in the //Run before unmounting// fields in the [[nas-usb|USB Support]] menu.
  
  \\  \\
retain_dhcp_lease_info_after_a_reboot.txt · Last modified: 2023/08/15 18:32 by petervdm