mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
18 lines
503 B
Text
18 lines
503 B
Text
|
post_install() {
|
||
|
dkms add -m amzn-drivers -v $1
|
||
|
dkms build -m amzn-drivers -v $1
|
||
|
dkms install -m amzn-drivers -v $1
|
||
|
depmod
|
||
|
printf 'Make sure to add "ena" to the "mkinitcpio.conf" "MODULES" section'
|
||
|
printf ' and rebuild the intramfs with "mkinitcpio -P"\n'
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
dkms uninstall -m amzn-drivers -v $2
|
||
|
dkms remove -m amzn-drivers -v $2
|
||
|
dkms add -m amzn-drivers -v $1
|
||
|
dkms build -m amzn-drivers -v $1
|
||
|
dkms install -m amzn-drivers -v $1
|
||
|
depmod
|
||
|
}
|