spudd.install 599 B

12345678910111213141516171819202122232425262728293031323334353637
  1. generate_initramfs() {
  2. mkinitcpio -p spudd-master
  3. }
  4. ## arg 1: the new package version
  5. pre_install() {
  6. echo ""
  7. }
  8. ## arg 1: the new package version
  9. post_install() {
  10. generate_initramfs
  11. }
  12. #post_install
  13. ## arg 1: the new package version
  14. ## arg 2: the old package version
  15. pre_upgrade() {
  16. echo ""
  17. }
  18. ## arg 1: the new package version
  19. ## arg 2: the old package version
  20. post_upgrade() {
  21. generate_initramfs
  22. }
  23. ## arg 1: the old package version
  24. pre_remove() {
  25. echo ""
  26. }
  27. #pre_remove
  28. ## arg 1: the old package version
  29. post_remove() {
  30. rm /boot/initramfs-spudd-master.img
  31. }