summaryrefslogtreecommitdiff
path: root/package/network/services/odhcpd/files/odhcpd.defaults
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/odhcpd/files/odhcpd.defaults')
-rw-r--r--package/network/services/odhcpd/files/odhcpd.defaults2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/odhcpd/files/odhcpd.defaults b/package/network/services/odhcpd/files/odhcpd.defaults
index cecbdd4..2d8a6f0 100644
--- a/package/network/services/odhcpd/files/odhcpd.defaults
+++ b/package/network/services/odhcpd/files/odhcpd.defaults
@@ -13,7 +13,7 @@ json_select ..
case "$protocol" in
# only enable server mode on statically addressed lan ports
-"static") MODE=server ;;
+"static") [ -e /proc/sys/net/ipv6 ] && MODE=server || MODE=disabled ;;
*) MODE=disabled ;;
esac