diff --git a/daemons/dhcpd b/daemons/dhcpd index c57dbadb..e09878e1 100755 --- a/daemons/dhcpd +++ b/daemons/dhcpd @@ -22,9 +22,12 @@ # 02139, USA. dhcpd-conf() { - netzero=${address%.*}.0 - netC=${netzero%.*} - netB=${netC%.*} + netzero=${dowse_net} + # if no base network specified, use class C + # TODO: better deduction based on netmask if known + [[ "$netzero" = "" ]] && netzero=${address%.*}.0 + range_start=${dowse_guests[(ws:,:)1]} + range_stop=${dowse_guests[(ws:,:)2]} cat <