13 lines
427 B
Bash
Executable File
13 lines
427 B
Bash
Executable File
#!/usr/bin/env 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
|
|
}
|
|
export OPUS_PACKAGES="$OPUS_PACKAGES firmware-linux firmware-misc-nonfree $(sfp wireless) $(sfp wifi) $(sfp net)"
|
|
export OPUS_PACKAGES="${OPUS_PACKAGES//firmware-ipw2x00/} |