mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 16:47:15 +08:00
improved the broadcom-wl install script to skip the empty modules directory
This commit is contained in:
parent
cc9fa05844
commit
9922929d3b
@ -6,7 +6,7 @@ _kernelver=4.0.5
|
||||
|
||||
pkgname=broadcom-wl
|
||||
pkgver=6.30.223.248
|
||||
pkgrel=13
|
||||
pkgrel=14
|
||||
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
|
||||
url='http://www.broadcom.com/support/802.11/linux_sta.php'
|
||||
arch=('x86_64')
|
||||
|
@ -1,9 +1,13 @@
|
||||
post_upgrade() {
|
||||
cd lib/modules
|
||||
for i in extramodules-*; do depmod $(cat "$i/version"); done
|
||||
cd ../..
|
||||
for i in /usr/lib/modules/extramodules-*
|
||||
do
|
||||
if [ -f "$i/version" ]
|
||||
then
|
||||
depmod $(cat "$i/version")
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
post_upgrade
|
||||
post_upgrade
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user