2 uci -q get dhcp.odhcpd && exit 0
5 . /usr/share/libubox/jshn.sh
7 json_load "$(cat /etc/board.json)"
10 json_get_vars protocol
15 # only enable server mode on statically addressed lan ports
16 "static") MODE=server ;;
21 set dhcp.odhcpd=odhcpd
22 set dhcp.odhcpd.maindhcp=0
23 set dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd
24 set dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update
25 set dhcp.odhcpd.loglevel=4
26 set dhcp.lan.dhcpv6=$MODE