Skip to content

Instantly share code, notes, and snippets.

@corpix
Created July 21, 2014 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corpix/86c7960ee7a525ed2c4a to your computer and use it in GitHub Desktop.
Save corpix/86c7960ee7a525ed2c4a to your computer and use it in GitHub Desktop.
Exports dd-wrt dhcp static leases for isc-dhcpd
var s = '';for(var i = 0; i < nodes.length; i = i + 4) {s+="group {\n host " + nodes[i+1].value + " {\n hardware ethernet " + nodes[i].value + ";\n fixed-address " + nodes[i+2].value + ";\n }\n}\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment