odhcpd: update default config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
9f73519e62
commit
293cea41ef
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=odhcpd
|
PKG_NAME:=odhcpd
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
|
||||||
|
|||||||
@ -21,7 +21,6 @@ case "$protocol" in
|
|||||||
# only enable server mode on statically addressed lan ports
|
# only enable server mode on statically addressed lan ports
|
||||||
"static")
|
"static")
|
||||||
V4MODE=server
|
V4MODE=server
|
||||||
[ -e /proc/sys/net/ipv6 ] && V6MODE=server
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -46,7 +45,8 @@ set dhcp.lan.dhcpv4=$V4MODE
|
|||||||
set dhcp.lan.dhcpv6=$V6MODE
|
set dhcp.lan.dhcpv6=$V6MODE
|
||||||
set dhcp.lan.ra=$V6MODE
|
set dhcp.lan.ra=$V6MODE
|
||||||
set dhcp.lan.ra_slaac=1
|
set dhcp.lan.ra_slaac=1
|
||||||
add_list dhcp.lan.ra_flags=managed-config
|
|
||||||
add_list dhcp.lan.ra_flags=other-config
|
add_list dhcp.lan.ra_flags=other-config
|
||||||
|
set dhcp.lan.max_preferred_lifetime=2700
|
||||||
|
set dhcp.lan.max_valid_lifetime=5400
|
||||||
commit dhcp
|
commit dhcp
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user