[Feature][ZXW-65]merged P49 base code
Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/app/Script/scripts/lan.sh b/ap/app/Script/scripts/lan.sh
index 407c47b..a1c74d1 100755
--- a/ap/app/Script/scripts/lan.sh
+++ b/ap/app/Script/scripts/lan.sh
@@ -120,9 +120,9 @@
echo 1 > /sys/module/fast_common/parameters/lan_dos_enable
fi
+ dhcps_in_cap=`nv get dhcps_in_cap`
-
-
+ if [ "x$dhcps_in_cap" != "x1" ]; then
echo "" > $path_conf/udhcpd.leases
. $path_sh/user-config-udhcpd.sh
@@ -132,7 +132,7 @@
echo "Info: config-udhcpd.sh lan -r 1 start" >> $test_log
. $path_sh/config-udhcpd.sh "lan" -r 1
fi
-
+ fi
dnsmasq -i $lan_if -r $path_conf/resolv.conf &
. $path_sh/upnp.sh