bash-dhcp-server
bash-dhcp-server copied to clipboard
Support Fedora, fix netcat selection via NC environment variable
Fedora's netcat-openbsd
does not say it is from OpenBSD, so test for zero timeout support instead. Also it explicitly prohibits -lp
combination, replace it to more generic -l [port]
.
Fix that $NC
is not used for actual connection handling.
P.S.: Please check these don't break other platforms. I have nothing except Fedora right now to test on.
Ping @Firemoon777