diff options
Diffstat (limited to 'recipes-kernel/rs9113/files/rs9113/rs9113.init')
-rwxr-xr-x | recipes-kernel/rs9113/files/rs9113/rs9113.init | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.init b/recipes-kernel/rs9113/files/rs9113/rs9113.init index c723846..d594e28 100755 --- a/recipes-kernel/rs9113/files/rs9113/rs9113.init +++ b/recipes-kernel/rs9113/files/rs9113/rs9113.init @@ -23,6 +23,10 @@ RS9113_WKUP=${MTS_IODIR}/wifi-bt-lpwkup case "$1" in start) + if ((RS9113_LOAD == 0)) ; then + # We don't want the driver loaded. + exit 0 + fi # Reset the RS9113 chip is ready, and # wait for it to settle. if [ -f "$RS9113_RESET" ] ; then @@ -47,6 +51,9 @@ case "$1" in if [ $WKUP -ne 1 ] ; then logger -t rs9113 -p error -s "$RS9113_WKUP is $WKUP" fi + else + # No WiFi BT, so exit quietly + exit 0 fi /usr/bin/logger -t "rs9113" -p info -s "Loading rs9113 modules with COEX=$COEX_MODE and Country=$SET_COUNTRY_CODE" /usr/sbin/rs9113_load_modules.sh $CONFIG |