summaryrefslogtreecommitdiff
path: root/package/network/services/odhcpd/files/odhcpd.defaults
diff options
context:
space:
mode:
authorRosy Song <rosysong@rosinson.com>2018-09-12 09:21:19 +0800
committerHans Dedecker <dedeckeh@gmail.com>2018-09-12 21:47:33 +0200
commit918ec4d549cc80b590e50003d0c489c27f864749 (patch)
treee8ec9f1ed8f0fb5c0e77f611c1c18ff19d747e14 /package/network/services/odhcpd/files/odhcpd.defaults
parent8cac8572897c28e902218b445aa9bed82c40989f (diff)
downloadmtk-20170518-918ec4d549cc80b590e50003d0c489c27f864749.zip
mtk-20170518-918ec4d549cc80b590e50003d0c489c27f864749.tar.gz
mtk-20170518-918ec4d549cc80b590e50003d0c489c27f864749.tar.bz2
odhcpd: enable ipv6 server mode only when it is supported
Signed-off-by: Rosy Song <rosysong@rosinson.com>
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