From b47bcec4e8d73a892162affb3eb1599cee5eea17 Mon Sep 17 00:00:00 2001 From: Morten Strandbo Date: Sun, 8 May 2022 20:05:52 +0200 Subject: [PATCH] Update 'README.md' --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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