1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

add non-free in sources.list

This commit is contained in:
Émile Morel 2015-08-21 14:25:22 +02:00
parent 19a6ae7d64
commit b175d5a01c

View file

@ -77,6 +77,11 @@ export DEBIAN_FRONTEND=noninteractive
# Packaged USB Wireless Device firmwares # Packaged USB Wireless Device firmwares
# Based on https://wiki.debian.org/WiFi#USB_Devices # Based on https://wiki.debian.org/WiFi#USB_Devices
if [ "${firmware_nonfree}" == yes ]; then if [ "${firmware_nonfree}" == yes ]; then
# check if non-free is set on sources.list
if ! grep non-free /etc/apt/sources.list ; then
sed -i -e '0,/main/{s/main/main non-free/}' /etc/apt/sources.list
apt-get update
fi
packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware" packages="$packages firmware-atheros atmel-firmware firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-libertas zd1211-firmware"
else else
packages="$packages firmware-linux-free" packages="$packages firmware-linux-free"