#!/bin/sh

post_install() {
  echo '>>> !!!ATTENTION!!!'
  echo '>>> ================================================================================='
  echo '>>> This driver is useful only for ATI Mach, Rage and Radeon R100-R500 series.'
  echo '>>> ---------------------------------------------------------------------------------'
  echo '>>> Note: This driver does not support AMD/ATI Radeon R600 series and newer,'
  echo '>>>       because require nonfree firmware blobs.'
  echo '>>> ---------------------------------------------------------------------------------'
  echo '>>> For AMD/ATI Radeon R600 series and newer, please use "modesetting" X.Org driver,'
  echo '>>> which is included in "xenocara-server" package and'
  echo '>>> configure "/etc/X11/xorg.conf.d/00-device.conf" as it is written bellow:'
  echo '>>> ---------------------------------------------------------------------------------'
  echo '>>> Section "Device"'
  echo '>>>   Identifier "devname"'
  echo '>>>   Driver "modesetting"'
  echo '>>>   Option "AccelMethod" "none"'
  echo '>>> EndSection'
  echo '>>> ---------------------------------------------------------------------------------'
  echo '>>> Or install "xenocara-video-fbdev" package and'
  echo '>>> configure "/etc/X11/xorg.conf.d/00-device.conf" as it is written bellow:'
  echo '>>> ---------------------------------------------------------------------------------'
  echo '>>> Section "Device"'
  echo '>>>   Identifier "devname"'
  echo '>>>   Driver "fbdev"'
  echo '>>> EndSection'
  echo '>>> ---------------------------------------------------------------------------------'
}

post_upgrade() {
  post_install
}
