1
0

odhcpd.defaults 296 B

12345678910111213
  1. #!/bin/sh
  2. uci -q get dhcp.odhcpd && exit 0
  3. touch /etc/config/dhcp
  4. uci batch <<EOF
  5. set dhcp.odhcpd=odhcpd
  6. set dhcp.odhcpd.maindhcp=0
  7. set dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd
  8. set dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update
  9. set dhcp.lan.dhcpv6=server
  10. set dhcp.lan.ra=server
  11. commit dhcp
  12. EOF