PKGBUILDs/alarm/amzn-ena-aarch64-dkms/amzn-drivers.install
2022-09-02 16:30:42 -06:00

17 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
}