From 5fe3e7a2620dd8bc4a813ef15b0d39176462cab3 Mon Sep 17 00:00:00 2001 From: Morten Date: Tue, 10 May 2022 10:01:58 +0200 Subject: [PATCH] crontab-info --- crontab-template | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 crontab-template diff --git a/crontab-template b/crontab-template new file mode 100644 index 0000000..7eb5df5 --- /dev/null +++ b/crontab-template @@ -0,0 +1,3 @@ +# Create a leasefile in the correct format and copy it to a folder of your choice. +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