Skip to content
base-seblu.install 556 B
Newer Older
# vim:set ts=2 sw=2 et:

# arg 1:  the new package version
post_install() {
Seblu's avatar
Seblu committed
  # sbin should be a symlink
  if [[ ! -L /usr/local/sbin ]]; then
    rmdir '/usr/local/sbin' &&
      ln -sn bin /usr/local/sbin &&
      echo '!! /usr/local/sbin was not a symlink' ||
      echo '!! /usr/local/sbin is not a symlink'
  fi
Seblu's avatar
Seblu committed
  # display depency info
  echo '-- Unused dependencies:'
  pacman -Qdt
  echo '-- Local-only packages'
  pacman -Qm
Seblu's avatar
Seblu committed
  return 0
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  post_install "$1"
}