Add more wifi firmware

This stuff is bad, but only gets installed on the mesh client if the --insecure option is set
This commit is contained in:
Bob Mottram 2016-07-13 19:03:43 +01:00
parent 6fbafc39bc
commit 2e5a742bf4
1 changed files with 8 additions and 2 deletions

View File

@ -510,12 +510,18 @@ initialise_mesh() {
# enable non-free repo
if ! grep -q "non-free" $rootdir/etc/apt/sources.list; then
chroot "$rootdir" sed -i "s| main| main non-free|g" /etc/apt/sources.list
chroot "$rootdir" apt-get update
fi
# enable contrib repo
if ! grep -q "contrib" $rootdir/etc/apt/sources.list; then
chroot "$rootdir" sed -i "s| main| main contrib|g" /etc/apt/sources.list
fi
chroot "$rootdir" apt-get update
# install proprietary wifi drivers
# see https://wiki.debian.org/iwlwifi
chroot "$rootdir" apt-get -y install firmware-iwlwifi
chroot "$rootdir" apt-get -y install firmware-iwlwifi firmware-b43-installer firmware-brcm80211
fi
INSTALLING_MESH=1