2022-05-10 11:39:01 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-05-20 04:57:08 +00:00
|
|
|
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
|
|
|
|
}
|
2022-05-23 04:30:20 +00:00
|
|
|
export OPUS_PACKAGES="$OPUS_PACKAGES firmware-linux firmware-misc-nonfree $(sfp wireless) $(sfp wifi) $(sfp net)"
|