Fancier proprietary firmware grabber
This commit is contained in:
parent
fc5a2a58a9
commit
653cee3163
@ -1,5 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
apt -y install firmware-nonfree
|
||||
apt -y install firmware-linux firmware-misc-nonfree
|
||||
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
|
||||
}
|
||||
apt -y install $(sfp wireless) $(sfp wifi) $(sfp net)
|
||||
apt -y autoclean
|
||||
rm /setup
|
Loading…
Reference in New Issue
Block a user