drm/module-setup.sh: redirect grep to /dev/null
on some architectures, no pci devices existmaster
parent
a3a8f58d73
commit
d59732004d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue