summaryrefslogtreecommitdiffstats
path: root/etc/rc.backup_dhcpleases.sh
blob: 73f83a8e5198ee3e05d55709fd0044016797a7ae (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Save the DHCP lease database to the config path.
if [ -d "/var/dhcpd/var/db" ]; then
	/etc/rc.conf_mount_rw
	cd / && tar -czf /cf/conf/dhcpleases.tgz -C / var/dhcpd/var/db/
	/etc/rc.conf_mount_ro
fi
OpenPOWER on IntegriCloud