# This is a default template for a post-install scriptlet. You can # remove any functions you don't need (and this header). # arg 1: the new package version post_install() { pacman -Q grub &>/dev/null hasgrub=$? pacman -Q lilo &>/dev/null haslilo=$? cat << EOF Aby użyć memtest86+ zmodyfikuj bootloader. Jeżeli /boot jest na głównej partycji: EOF if [ "$hasgrub" = "0" ]; then cat << EOF ==> GRUB dodaj te wpisy do /boot/grub/menu.lst title Memtest86+ [/boot/memtest86+/memtest.bin] kernel (hd?,?)/boot/memtest86+/memtest.bin EOF fi if [ "$haslilo" = "0" ]; then cat << EOF ==> Lilo dodaj to do lilo.conf image = /boot/memtest86+/memtest.bin label = "Memtest86+" EOF fi cat << EOF Jeżeli /boot jest na osobnej partycji to użyj /memtest86+/memtest.bin bez prefixu /boot . EOF } # arg 1: the new package version # arg 2: the old package version post_upgrade() { post_install $1 } # arg 1: the old package version post_remove() { cat << EOF Usuń dodatkowe wpisy z bootloaderów. EOF } op=$1 shift $op $*