univnautes / etc / rc.backup_dhcpleases.sh @ 859a5304
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
# Save the DHCP lease database to the config path.
|
4 |
if [ -d "/var/dhcpd/var/db" ]; then |
5 |
/etc/rc.conf_mount_rw |
6 |
cd / && tar -czf /cf/conf/dhcpleases.tgz -C / var/dhcpd/var/db/ |
7 |
/etc/rc.conf_mount_ro |
8 |
fi
|