diff --git a/README.md b/README.md index bf59e54..880685e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # dhcpd_leases +Add this to a file and run in cron: +### +awk '{if ($1) {$1=strftime("%c",$1); print $1 ";" $2 ";" $3 ";" $4}}' /var/lib/misc/dnsmasq.leases > /tmp/dhcpleases.txt +cp /tmp/dhcpleases.txt /var/www/html/ \ No newline at end of file