summarylogtreecommitdiffstats
path: root/rl_custom_isearch.install
blob: bae2f79b17980e3581a1a73f94bf44eb83cdf983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# shellcheck shell=bash disable=SC2016
post_install() {
  [ -e /etc/ld.so.preload ] || install -m 644 /dev/null /etc/ld.so.preload

  sed -i -e '/librl_custom_isearch.so/d' /etc/ld.so.preload
  echo '/usr/$LIB/librl_custom_isearch.so' >> /etc/ld.so.preload
}

post_upgrade() {
  post_install
}

post_remove() {
  sed -i -e '/librl_custom_isearch.so/d' /etc/ld.so.preload
}