windvn/mods/firmware-proprietary/modscript
2022-08-04 22:56:02 +02:00

13 lines
467 B
Bash
Executable File

#!/bin/bash
function sfp {
packages=""
while read p; do
IFS=" " read -ra packageinfo <<< "$p"
if [[ "${packageinfo[0]}" == *firmware* ]]; then
packages="$packages ${packageinfo[0]}"
fi
done <<<$(apt-cache search "$1")
echo "${packages//"firmware-ipw2x00"/""}"
}
export OPUS_PACKAGES="$OPUS_PACKAGES firmware-linux firmware-misc-nonfree $(sfp wireless) $(sfp wifi) $(sfp net)"
export OPUS_PACKAGES_INTERACTIVE="$OPUS_PACKAGES_INTERACTIVE firmware-ipw2x00"