1 rebuild_module_dependencies() {
2 _PACKAGES=`pacman -Qsq linux`
3 _KERNELS=`pacman -Ql $PACKAGES | grep /modules.alias.bin | sed 's/.*\/lib\/modules\/\(.*\)\/modules.alias.bin/\1/g'`
4 for kernver in $_KERNELS; do
5 echo -n ">>> Rebuilding module dependencies for $kernver ..."
6 depmod $kernver > /dev/null 2>&1
12 rebuild_module_dependencies
15 rebuild_module_dependencies
18 rebuild_module_dependencies