Install out-of-tree drivers only if headers are available

This commit is contained in:
zador-blood-stained 2017-10-24 15:32:13 +03:00
parent f738d7cc84
commit fbd0b46b37
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ install_mt7601()
# TODO: Set the module to build automatically via dkms in the future here
}
if [[ $BRANCH == default ]]; then
if [[ $BRANCH == default && $INSTALL_HEADERS == yes ]]; then
display_alert "Installing additional driver" "MT7601U" "info"
install_mt7601
fi

View file

@ -57,7 +57,7 @@ install_rtl8192cu()
#cp blacklist*.conf $SDCARD/etc/modprobe.d/
}
if [[ $BRANCH == default && $ARCHITECTURE == arm ]]; then
if [[ $BRANCH == default && $ARCHITECTURE == arm && $INSTALL_HEADERS == yes ]]; then
display_alert "Installing additional driver" "RT8192" "info"
install_rtl8192cu
fi