summarylogtreecommitdiffstats
path: root/pvs-studio.install
blob: 94d424006eb26641d80cb7e56f4c640fdc9b02f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  if [ $(uname -m) == i686 ] && [ ! -f /proc/sys/fs/binfmt_misc/pvs-studio ]; then
    cat /usr/lib/binfmt.d/pvs-studio.conf > /proc/sys/fs/binfmt_misc/register
  fi
}

post_upgrade() {
  post_install
}

post_remove() {
  if [ -f /proc/sys/fs/binfmt_misc/pvs-studio ]; then
    echo -1 > /proc/sys/fs/binfmt_misc/pvs-studio
  fi
}