File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / dhcp / tests / failover / new-failover
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 9 09:06:55 2012 UTC (11 years, 10 months ago) by misho
Branches: dhcp, MAIN
CVS tags: v4_1_R7p0, v4_1_R7, v4_1_R4, HEAD
dhcp 4.1 r7

#!/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


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>