Created
July 21, 2014 01:02
-
-
Save corpix/86c7960ee7a525ed2c4a to your computer and use it in GitHub Desktop.
Exports dd-wrt dhcp static leases for isc-dhcpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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