diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index caf6025d..c666a041 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -476,6 +476,13 @@ service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh class late_start oneshot +service wifi-sdio-on /system/bin/sh /system/etc/init.qcom.sdio.sh + class late_start + group wifi inet + disabled + oneshot + + on property:sys.boot_completed=1 start qcom-post-boot diff --git a/rootdir/etc/init.qcom.sdio.sh b/rootdir/etc/init.qcom.sdio.sh index 4d82593c..e6547b3b 100755 --- a/rootdir/etc/init.qcom.sdio.sh +++ b/rootdir/etc/init.qcom.sdio.sh @@ -36,41 +36,41 @@ target=`getprop ro.board.platform` case "$target" in "msm7627_6x") - echo "$arg" > /sys/devices/platform/msm_sdcc.1/polling - echo "$arg" > /sys/devices/platform/msm_sdcc.2/polling + echo 1 > /sys/devices/platform/msm_sdcc.1/polling + echo 1 > /sys/devices/platform/msm_sdcc.2/polling ;; "msm7627_ffa") - echo "$arg" > /sys/devices/platform/msm_sdcc.2/polling + echo 1 > /sys/devices/platform/msm_sdcc.2/polling ;; "msm7627_surf") - echo "$arg" > /sys/devices/platform/msm_sdcc.1/polling - echo "$arg" > /sys/devices/platform/msm_sdcc.2/polling + echo 1 > /sys/devices/platform/msm_sdcc.1/polling + echo 1 > /sys/devices/platform/msm_sdcc.2/polling ;; "msm7627a") - echo "$arg" > /sys/devices/platform/msm_sdcc.2/polling + echo 1 > /sys/devices/platform/msm_sdcc.2/polling ;; "msm7630_surf") - echo "$arg" > /sys/devices/platform/msm_sdcc.3/polling + echo 1 > /sys/devices/platform/msm_sdcc.3/polling ;; "msm7630_1x") - echo "$arg" > /sys/devices/platform/msm_sdcc.3/polling + echo 1 > /sys/devices/platform/msm_sdcc.3/polling ;; "msm7630_fusion") - echo "$arg" > /sys/devices/platform/msm_sdcc.3/polling + echo 1 > /sys/devices/platform/msm_sdcc.3/polling ;; "msm8660") - echo "$arg" > /sys/devices/platform/msm_sdcc.4/polling + echo 1 > /sys/devices/platform/msm_sdcc.4/polling ;; "msm8660_csfb") - echo "$arg" > /sys/devices/platform/msm_sdcc.4/polling + echo 1 > /sys/devices/platform/msm_sdcc.4/polling ;; esac