summarylogtreecommitdiffstats
path: root/brscan2.install
blob: 1d35d1d357870f667e6a87c2d81ce301ae1d9f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
  grep brother2 /etc/sane.d/dll.conf >/dev/null 2>&1
  if [ $? != 0 ] ; then
      echo 'brother2' >> /etc/sane.d/dll.conf
    else
      echo ''
      echo 'Note: SANE backend "brother2" was already registered in /etc/sane.d/dll.conf'
      echo ''
  fi
}

post_remove() {
  grep brother2 /etc/sane.d/dll.conf >/dev/null 2>&1
  if [ $? = 0 ] ; then
      sed -i '/^brother2$/d' /etc/sane.d/dll.conf
    else
      echo ''
      echo 'Note: SANE backend "brother2" was already removed from /etc/sane.d/dll.conf'
      echo ''
  fi
}