firmware_nonfree is now a boolean

This commit is contained in:
keoma
2019-02-09 15:08:00 +01:00
parent 7d3f8bedc3
commit 898604a772
4 changed files with 6 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ export DEBIAN_FRONTEND=noninteractive
# Packaged USB Wireless Device firmwares
# Based on https://wiki.debian.org/WiFi#USB_Devices
if [[ $firmware_nonfree == yes ]]; then
if [[ $firmware_nonfree -eq 1 ]]; then
# check if non-free is set on sources.list
if ! grep -q non-free /etc/apt/sources.list ; then
sed '/debian/{s/main/& non-free/}' -i /etc/apt/sources.list