pandora-first-run-wizard: blacklist wifi modules
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 27 Mar 2012 22:34:40 +0000 (01:34 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 27 Mar 2012 22:34:40 +0000 (01:34 +0300)
wifi modules are to be loaded by wifi scripts, otherwise networkmanager
brings the wifi up no matter what and there doesn't seem to be any sane
way to stop it.

recipes/pandora-system/pandora-first-run-wizard.bb
recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh

index a63dc0c..e3da76b 100755 (executable)
@@ -6,7 +6,7 @@ RDEPENDS = "hsetroot zenity dbus pandora-wallpaper-official tslib tslib-calibrat
 
 COMPATIBLE_MACHINE = "omap3-pandora"
 
-PR = "r29"
+PR = "r30"
 
 SRC_URI = " \
           file://first-run-wizard.sh \
index f30b80e..3fa6fc3 100755 (executable)
@@ -229,6 +229,11 @@ update-rc.d -f blueprobe remove
 update-rc.d -f dropbear remove
 update-rc.d -f wl1251-init remove
 
+# prevent wifi from being autoloaded on later kernels, let wl1251-init script do it
+if ! grep -q 'blacklist wl1251_sdio' /etc/modprobe.conf 2> /dev/null; then
+  echo 'blacklist wl1251_sdio' >> /etc/modprobe.conf
+fi
+
 # get rid of some dirs in /media that OE creates but are unlikely to be used
 rmdir /media/card /media/cf /media/mmc1 /media/net /media/realroot /media/union 2> /dev/null