Browse Source

drm/module-setup.sh: redirect grep to /dev/null

on some architectures, no pci devices exist
master
Harald Hoyer 12 years ago
parent
commit
d59732004d
  1. 2
      modules.d/50drm/module-setup.sh

2
modules.d/50drm/module-setup.sh

@ -54,7 +54,7 @@ installkernel() { @@ -54,7 +54,7 @@ installkernel() {
# as we could e.g. be in the installer; nokmsboot boot parameter will disable
# loading of the driver if needed
if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
| grep -qxf - /sys/bus/pci/devices/*/modalias; then
| grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
hostonly='' instmods $_modname
continue
fi

Loading…
Cancel
Save