rc.backup_dhcpleases 163 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
	cd / && tar -czf /conf/dhcpleases.tgz -C / var/dhcpd/var/db/
Ad Schellevis's avatar
Ad Schellevis committed
6
fi