aboutsummarylogtreecommitdiffstats
path: root/ifcplugin.install
blob: c91abcc2f09b813058da0f6a7f2b017383776f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

post_install() {
  correct
}

post_upgrade() {
  correct
}

correct() {
  TARGET="/etc/chromium/native-messaging-hosts/ru.rtlabs.ifcplugin.json"
  rm -f "$TARGET"
  ln -s "/etc/opt/chrome/native-messaging-hosts/ru.rtlabs.ifcplugin.json" "$TARGET"

  chmod 777 -R "/var/log/ifc"

  # Add VIDs and PIDs to CCID Boundle
  cd /etc/update_ccid_boundle
  bash ./update_ccid_boundle.sh
}