#!/bin/sh cp /etc/apt/sources.list /etc/apt/sources.list.d/non-free.list sed -i 's/main/non-free/g' /etc/apt/sources.list.d/non-free.list if [ -e /etc/apt/sources.list.d/zz-sources.list ] ; then cp /etc/apt/sources.list /etc/apt/sources.list.d/zz-non-free.list sed -i 's/main/non-free/g' /etc/apt/sources.list.d/zz-non-free.list fi apt-get update apt-get -y install firmware-linux-nonfree