From 9e1cbbcf2b62e6eae3f2478c8996b3e847c01bb9 Mon Sep 17 00:00:00 2001 From: Sheng Fang Date: Fri, 23 Aug 2013 19:21:44 +0800 Subject: [PATCH] wlan: update the exist condition of cfg.ini file. In some cases, cfg.ini file is there but the size is 0. So we need to check the size also. Change-Id: Ic4ca9ecb050193d9be6c8e754894394ce508a3ba CRs-Fixed: 533380 --- rootdir/etc/init.qcom.wifi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.wifi.sh b/rootdir/etc/init.qcom.wifi.sh index 89dc2d59..bc03f5c1 100644 --- a/rootdir/etc/init.qcom.wifi.sh +++ b/rootdir/etc/init.qcom.wifi.sh @@ -251,7 +251,7 @@ case "$target" in ln -s /system/lib/modules/pronto/pronto_wlan.ko \ /system/lib/modules/wlan.ko # Populate the writable driver configuration file - if [ ! -e /data/misc/wifi/WCNSS_qcom_cfg.ini ]; then + if [ ! -s /data/misc/wifi/WCNSS_qcom_cfg.ini ]; then cp /system/etc/wifi/WCNSS_qcom_cfg.ini \ /data/misc/wifi/WCNSS_qcom_cfg.ini chown -h system:wifi /data/misc/wifi/WCNSS_qcom_cfg.ini