rc.backup_dhcpleases 229 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3 4
#!/bin/sh

# Save the DHCP lease database to the config path.
if [ -d "/var/dhcpd/var/db" ]; then
5
	/usr/local/etc/rc.conf_mount_rw
6
	cd / && tar -czf /conf/dhcpleases.tgz -C / var/dhcpd/var/db/
7
	/usr/local/etc/rc.conf_mount_ro
Ad Schellevis's avatar
Ad Schellevis committed
8
fi