2 echo '--------------------------------------------------------------------------'
3 echo ' READ THE WIKI ARTICLE ON THIS PKG'
5 echo ' https://wiki.archlinux.org/index.php/Modprobed_db'
7 echo '--------------------------------------------------------------------------'
8 echo ' QUICK SETUP INSTRUCTIONS'
10 echo ' 1) Edit /etc/modprobed_db.conf to define the path to your database'
11 echo ' (default is /var/log)'
13 echo ' 2) Edit /etc/modprobed_db.conf to define any modules you wish to ignore'
14 echo ' in the ignore array. For example, modules that are not a part of'
15 echo ' the linux kernel such as those installed by other packages like '
16 echo ' nvidia, virtualbox modules, etc.'
18 echo ' 3) Add an entry to the root crontab to have the script run'
19 echo ' at some regular interval.'
21 echo ' Do via crontab -e as the root user'
23 echo ' For example, once every 5 min:'
24 echo ' */5 * * * * /usr/bin/modprobed_db &> /dev/null'
26 echo ' For example, once every hour:'
27 echo ' 0 */1 * * * /usr/bin/modprobed_db &> /dev/null'
29 echo '--------------------------------------------------------------------------'
30 echo ' LOADING THE SAVED DATABASE'
32 echo 'When ready to modprobe the contents of your database (i.e. when ready to'
33 echo 'compile a new kernel with make localmodconfig), simply run the supplied'
34 echo 'script called reload_database which will run the modprobe command for you.'
36 echo '--------------------------------------------------------------------------'
40 echo '-----------------------------------------------------------------------'
41 echo 'Be sure you remove the entry in your crontab!'
43 echo 'To completely remove all traces of this package, you need to manually'
44 echo 'delete your databases.'
46 echo 'If you used the default path you would simply: rm /var/log/modprobed.*'
47 echo '-----------------------------------------------------------------------'
50 # $1: The new package version
51 # $2: The old package version
54 NEW=`echo $1 | cut -f-1 -d '-'`
55 OLD=`echo $2 | cut -f-1 -d '-'`
57 if [ "$OLD" = "1.3" ]; then
58 echo '----------------------------------------------------------------------'
61 echo 'With this upgrade you MUST replace your current version of'
62 echo '/etc/modprobed_db.conf with /etc/modprobed_db.conf.pacnew which'
63 echo ' contains a new array of modules to ignore!'
64 echo '----------------------------------------------------------------------'