David van Moolenbroek 83ee113ee0 Import NetBSD dhclient(8), dhcpd(8), dhcrelay(8)
dhcrelay(8) and omshell(1) have not been tested.

Change-Id: I0cad89f65666af4e366a86e130ce8df0894c3bb4
2017-03-21 22:00:14 +00:00

29 lines
537 B
Bash
Executable File

#!/bin/sh
foo=10
while [ $foo -lt 100 ]; do
cat >>dhcp-1.leases <<~
lease 10.0.0.$foo {
starts 4 2001/05/01 02:19:16;
ends 5 2021/05/03 02:29:16;
binding state active;
next binding state free;
hardware ethernet 08:00:46:06:6c:23;
uid "test-$foo";
}
~
foo=`expr $foo + 1`
cat >>dhcp-2.leases <<~
lease 10.0.0.$foo {
starts 4 2001/04/19 02:19:16;
ends 5 2021/04/21 02:29:16;
binding state active;
next binding state free;
hardware ethernet 08:00:46:06:6c:23;
uid "test-$foo";
}
~
foo=`expr $foo + 1`
done