Skip to content

Commit

Permalink
Try to install a metapackage based upon BIOS ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Limonciello committed Jun 21, 2016
1 parent 03ebfcb commit fe685de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions late/chroot_scripts/03-ubuntu-drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@ for i in `ubuntu-drivers list`; do
apt-get install --yes $i
fi
done

#install meta package based upon BIOS ID
BIOS_ID=$(dmidecode -t 11 | sed '/String 2/!d; s,.*String 2: 1\[,,; s,\],,')
PACKAGE=dell-$BIOS_ID-meta
if ! dpkg-query -W $PACKAGE >/dev/null 2>&1; then
apt-get install --yes $PACKAGE || true
fi


rm /etc/apt/apt.conf.d/99disable_authentication
IFHALT "Done with ubuntu-drivers autoinstall"

0 comments on commit fe685de

Please sign in to comment.