odhcpd: add loglevel uci option in odhcpd defaults
[openwrt/openwrt.git] / package / network / services / odhcpd / files / odhcpd.defaults
1 #!/bin/sh
2 uci -q get dhcp.odhcpd && exit 0
3 touch /etc/config/dhcp
4
5 uci batch <<EOF
6 set dhcp.odhcpd=odhcpd
7 set dhcp.odhcpd.maindhcp=0
8 set dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd
9 set dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update
10 set dhcp.odhcpd.loglevel=4
11 set dhcp.lan.dhcpv6=server
12 set dhcp.lan.ra=server
13 commit dhcp
14 EOF