summarylogtreecommitdiffstats
path: root/rl_custom_function-git.install
blob: 3d703d7a891c7668c086af013ecb97905bca5542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  [ -e /etc/ld.so.preload ] || install -m 644 /dev/null /etc/ld.so.preload

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

post_upgrade() {
  post_install
}

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