summarylogtreecommitdiffstats
path: root/pvs-studio.install
blob: a9e06d0737da7a2ab09cfc2321232a169c38ce01 (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 [ $(uname -m) == i686 ] && [ -f /proc/sys/fs/binfmt_misc/pvs-studio ]; then
    echo -1 > /proc/sys/fs/binfmt_misc/pvs-studio
  fi
}