diff options
author | graysky | 2018-12-01 11:35:18 -0500 |
---|---|---|
committer | graysky | 2018-12-01 11:35:18 -0500 |
commit | ed0675c434b2978f18a605f73d08debe08f611ca (patch) | |
tree | ff9061f31a89a2f64d7cf59a11a85a981c6dd8f1 /PKGBUILD | |
parent | 470df2e16bf3c727fa2a53b4aa264ce50f2c1bff (diff) | |
download | aur-ed0675c434b2978f18a605f73d08debe08f611ca.tar.gz |
Update to 4.19.6-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -57,9 +57,7 @@ _NUMAdisable=y # that you currently have probed in your system VASTLY reducing the number of # modules built and the build time to do it. # -# WARNING - ALL modules must be probed or loaded via a config file BEFORE you -# begin making the pkg unless you're running modprobed-db (AUR) and building -# this with makepkg as the user who is keeping the database. +# WARNING - ALL modules must be probed BEFORE you begin making the pkg! # # To keep track of which modules are needed for your specific system/hardware, # give module_db script a try: https://aur.archlinux.org/packages/modprobed-db @@ -163,11 +161,12 @@ prepare() { ### Optionally load needed modules for the make localmodconfig # See https://aur.archlinux.org/packages/modprobed-db if [ -n "$_localmodcfg" ]; then - if [ -f $HOME/.config/modprobed.db ]; then - msg "Found a modprobed-db database for Steven Rostedt's make localmodconfig" - make LSMOD=$HOME/.config/modprobed.db localmodconfig - else - msg "Running Steven Rostedt's make localmodconfig now" + msg "If you have modprobed-db installed, running it in recall mode now" + if [ -e /usr/bin/modprobed-db ]; then + [[ -x /usr/bin/sudo ]] || { + echo "Cannot call modprobe with sudo. Install sudo and configure it to work with this user." + exit 1; } + sudo /usr/bin/modprobed-db recall make localmodconfig fi fi |