You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
505 B

  1. #!/bin/sh
  2. set -e
  3. # None of these packages are strictly needed, but they make X
  4. # autoconfiguration work better. Need to install them before X is
  5. # preconfigured. Note that they are also listed as part of the task, which
  6. # will take care of their removal when the task is removed.
  7. for pkg in mdetect read-edid discover1 xresprobe; do
  8. if apt-cache show "$pkg" >/dev/null 2>&1 &&
  9. ! dpkg --get-selections | grep "$pkg" | grep -q install; then
  10. apt-get -q -y -f install $pkg >/dev/null || true
  11. fi
  12. done