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

on some architectures, no pci devices exist
master
Harald Hoyer 2013-03-18 14:17:19 +01:00
parent a3a8f58d73
commit d59732004d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ installkernel() {
# as we could e.g. be in the installer; nokmsboot boot parameter will disable # as we could e.g. be in the installer; nokmsboot boot parameter will disable
# loading of the driver if needed # loading of the driver if needed
if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \ 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 hostonly='' instmods $_modname
continue continue
fi fi