summarylogtreecommitdiffstats
path: root/arm-mem.install
blob: 03024b4cbbe6447f4c9f02fee0f16532481ef98b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  echo "/usr/lib/libarmmem.so" >> /etc/ld.so.preload
}

post_upgrade() {
  touch /etc/ld.so.preload
  grep -q "/usr/lib/libarmmem.so" /etc/ld.so.preload
  if [[ $? -ne 0 ]]; then
    post_install
  fi
}

pre_remove() {
  sed '|/usr/lib/libarmmem.so|d' -i /etc/ld.so.preload
}