PKGBUILDs/alarm/amzn-ena-aarch64-dkms/amzn-drivers.install

18 lines
503 B
Text
Raw Normal View History

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
}