Skip to content

Commit

Permalink
PI wifi to start only as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed Jan 25, 2017
1 parent 9b43aff commit f39b553
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ cp volumio/bin/dynswap.sh build/$BUILD/root/bin/dynswap.sh
cp volumio/bin/wireless.js build/$BUILD/root/volumio/app/plugins/system_controller/network/wireless.js
#dhcpcd
cp -rp volumio/etc/dhcpcd.conf build/$BUILD/root/etc/
#wifi pre script
cp volumio/bin/wifistart.sh build/$BUILD/root/bin/wifistart.sh
chmod a+x build/$BUILD/root/bin/wifistart.sh
echo 'Done Copying Custom Volumio System Files'

echo "Stripping binaries and libraries to save space"
Expand Down
17 changes: 16 additions & 1 deletion scripts/raspberryconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,23 @@ ln -s /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so
ln -s /opt/vc/bin/vcgencmd /usr/bin/vcgencmd
ln -s /opt/vc/lib/libvcos.so /usr/lib/libvcos.so

echo "Adding raspi blackist"
#this way if another USB WIFI dongle is present, it will always be the default one
echo "
#wifi
blacklist brcmfmac
blacklist brcmutil
" > /etc/modprobe.d/raspi-blacklist.conf


#Load PI3 wifi module just before wifi stack starts
echo "
#!/bin/sh
sudo /sbin/modprobe brcmfmac
sudo /sbin/modprobe brcmutil
sudo /sbin/iw dev wlan0 set power_save off
" >> /bin/wifistart.sh
echo "Give proper permissions to wifistart.sh"
chmod a+x /bin/wifistart.sh

#On The Fly Patch
if [ "$PATCH" = "volumio" ]; then
Expand Down
2 changes: 2 additions & 0 deletions volumio/bin/wifistart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
sudo /sbin/iw dev wlan0 set power_save off

0 comments on commit f39b553

Please sign in to comment.